What is Entity Framework in MVC Patteren.

Posted by Jayakumars under ASP.NET AJAX on 3/31/2013 | Points: 10 | Views : 1166 | Status : [Member] [MVP] | Replies : 1

What is Entity Framework in MVC3? How to Implemented This in MVC Patteren.

Mark as Answer if its helpful to you



Posted by: Jitendrasoft09 on: 3/31/2013 [Member] [MVP] Starter | Points: 25

Dear Jayakumars,
Entity Framework is same as ado,net to connect your database to create, update, delete, select operation. Entity Framework to be used in Model to connect your database with Using System.Data.Entity and Model class inherit the DbContext class as mentioned code below

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity;
public class DotNetFundaContext : DbContext
public DbSet<Student> Students { get; set; }

Jitendra Kumar
If my post helps you, plz mark as an answer.

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response