Posts

Showing posts with the label CSharp

Code First Approach with Entity Framework

Image
 1) To begin with the Code First Approach we need the below Nuget packages in our Project. Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.Design One can easily install the above packages with the nuget package manager or its command line tool. Once installed you will get the below packages stacked in the installed window of nuget package manager

Getting Started With Very First C# Program.

Creating a new Console Application in Visual Studio. Open a Visual Studio in your system.(You can find it in the Start Menu Programs.) You can create a new project in different ways Using classic method, Goto File -> New -> New Project. Using Quick Method, On Start Page Click on Create a New Project . After Clicking the Create New Project, You will get a template window. Select the Visual C# in side menu. Select the Create new Console Application . Name the Project (any name you want e.g. helloApp). Select the Directory where you want to save it. And Click Create button. Writing Your First Code in C#. After Creating a new project you will get the code like bellowed.   using System;  namespace helloApp        {             class Program              {                   static void Main(string[] args)             ...

Getting toolkit for developing C# applications.

Getting Visual Studio Community Edition At very first you need to know what is Visual Studio?? Visual Studio is an IDE (Integrated Development Environment), which is used to write the code in specific programming languages, compile it, and debug it. Visual studio supports below programming languages. Visual C# Visual Basic Visual C++ Visual F# Visual J# etc..... Where to get Visual Studio You can get Visual Studio Community version from Here . You Can download Visual Studio Community edition for free from above given link. Currently Visual Studio 2017 is the latest version of the Visual Studio. I will recommend to download the latest version from the site.  Getting Microsoft SQL Server Express Microsoft SQL Server is an database server. It is available for free from Here . There two editions of SQL Server available for free (Developer Edition and Express Edition), I will prefer Express edition which is enough for .NET application development. Once these tools are downloaded you can...