Tags » Entity Framework

Entity Framework’s Code First Approach in ASP.NET MVC

In this article we will discuss about entity framework code first approach. We will see what are the benefits of code first approach. We will also create a sample ASP.NET MVC application using code first approach. 344 more words

Entity Framework

Data Annotations in Class Generated by Entity Framework

How to add data annotations to the following class? The code is generated by Entity Framework, which means the file will be re-generated every time there’s a change to the EDMX file. 84 more words


Generic Repository With Selective Includes

This topic is something that has been screaming in the back of my head since I was first introduced to generics.  WHY can’t I selectively include a set of child properties with Entity Framework or an always “Default” set of child properties?! 577 more words

Entity Framework

Entity Framework - The Basics

Entity Framework makes creating and accessing databases easier and removes the need to write lots of data access code.

Getting Started

Add the NuGet packege listed below to your project – searching the NuGet package manager for “Entity Framework” should bring it up. 173 more words


How Magic Leap redefined magic. Literally.

There has been huge excitement at the long awaited announcement that Harry Potter will be reinvented in Cinematic Reality. Despite this excitement some truly die-hard fans are angry. 491 more words

Entity Framework

EntityFramework vNext Command

Open the CMD, go to the project directory where project.json is located

//Add Initial Migration

k ef migration add initial

//Apply Migration

k ef migration apply