For Beginers on Entity Framework (EF.)

Enitity Framework is another way to ad database to your  project.Here can add a model in the solution so that we can link the database. Here we don't need to write the SQL connection again and again. this also uses LINQ. that is the  another way to insert or fetch the data from the database..
firstly right click on the solution in the solution explorer window. then we can add ADO entity model from the "Data" section.then give the server name and select your database then select the table you want to add.
NOTE:  primary key is required in  every table for EF to work on that specific table .

Comments

Popular posts from this blog

How to use lamda expression for updating using LINQ

using session for login and logout in asp.net

How to post data in MVC using form collection for Beginners.