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”