Auto-Mapper

AutoMapper is a simple library built to getting rid of code that mapped one object to another. explore more about Auto-mapper here.

Add it from NuGet packages manager or execute below command

PM> Install-Package AutoMapper

here is sample code to use it…

Continue reading “Auto-Mapper”

Entity Framework: Code first

By using Code-First apporch, we can target a database that doesn’t exist and Code First will create, or an empty database that Code First will add new tables too. Code First allows you to define your model using C# or VB.Net classes. Additional configuration can optionally be performed using attributes on your classes and properties or by using a fluent API or Data Annotations.

Here is a walk through …

Continue reading “Entity Framework: Code first”