Posts

Showing posts from August, 2023

MCP Server with C#: What Is It, How It Works, Benefits & Practical Example

MCP Server with C#: What Is It, How It Works, Benefits & Practical Example C# & .NET Developer Guide MCP Server with C#: What Is It, How It Works, Benefits & Practical Example A complete, beginner-friendly guide to the Model Context Protocol (MCP) and how to build an MCP Server using C# and .NET — from zero to working code. C# / .NET AI Integration MCP Protocol Beginner-Friendly Table of Contents Introduction — The Problem MCP Solves What Is MCP (Model Context Protocol)? What Is an MCP Server? How MCP Works — Step by Step Why Use MCP with C# and .NET? MCP vs Traditional REST API Real-World Scenario: Customer Lookup Building a Simple MCP Server in C# Project Setup and Structure Creating Your First MCP Tool in C# Extending to a Database Query MCP Tools, Resources, and Prompts Benefits of Usi...

Connect SQL Server Database to WPF Application and Perform CRUD Operations

Image
In this post, we'll walk you through the step-by-step process of establishing a connection between your WPF application and a SQL Server database. By the end of this tutorial, you'll have a solid understanding of how to harness the power of SQL databases to manage your application's data efficiently. Let's get started! Step 1: Setting Up Your Project Open Visual Studio: Launch Visual Studio and create a new WPF project. <Window x:Class="WpfTutorialSeries.MainWindow"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         xmlns:local="clr-namespace:WpfTutorialSeries"         mc:Ignorable="d"         Title="Registra...

To Load, Add, Update and Delete records from database using EntityFramework in WPF, MVVM

Image
In this Post, we'll walk you through creating a WPF application with CRUD (Create, Read, Update, Delete) and also we will learn how to implement  ICommand. Here i will perform CURD operations on Employee having the properties ID, Name, Age, Gender, and Address. Plus, we'll add buttons to perform these operations seamlessly. Let's get started! Step 1: Setting Up Your Project Open Visual Studio: Launch Visual Studio and create a new WPF project. <Window x:Class="CURD.Views.EmployeeDetails"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         xmlns:local="clr-namespace:CURD.Views"         mc:Ignorable="d"       ...