Month: December 2016

Configuration Manager for SqlConnection

In this tutorial, it is explained how to use Configuration Manager for SqlConnection. Firstly, we need to add Configuration Manager as reference to the project. Choose System.Configuration Use namespace using System.Configuration; Then we are ready to use Configuration Manager for

Posted in c-sharp-code-examples Tagged with: ,

Entity Framework Code First Example

In this tutorial, Entity Framework code first example is given. We will continue from previous post and heaving code already we will make the database. This is actually the point of Entity Framework code first concept: to have classes in

Posted in c-sharp-code-examples Tagged with:

Basic Entity Framework C#

In this tutorial, Basic Entity Framework C# is explained with no database, code first. To make it simple, we will prepare it as console application. We need to add reference from NuGet package. So, click on References folder and Manage

Posted in c-sharp-code-examples Tagged with: ,