Code first approach using Entity Framework
In Entity Framework Code first approach, you do not have to create the database for your application. You just have to add classes to your web application and the database will be generated automatically.
In this article you will learn about the Code First approach in the Entity Framework.
Code first approach using Entity Framework
In Entity Framework Code first approach, you do not have to create the database for your application. You just have to add classes to your web application and the database will be generated automatically.
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · .NETCQRS Design Pattern with MediaRDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
SubashPosted Sep 15, 2016, 12:48 AM EDT
Nice share
Praveen KumarPosted Nov 29, 2015, 5:52 PM EST
Very nice Piyush Dixit
Shivam ShuklaPosted Aug 25, 2015, 1:52 PM EDT
Nice
Shivam ShuklaPosted Aug 25, 2015, 1:52 PM EDT
Nice article
Azeem AnzariPosted Aug 25, 2015, 4:47 AM EDT
Well explained
Santhakumar MunuswamyPosted Aug 23, 2015, 7:35 AM EDT
Thanks for Nice article
Ankur ChaturvediPosted Aug 23, 2015, 6:38 AM EDT
Use good approach
Sibeesh VenuTOP 100Posted Aug 22, 2015, 11:48 PM EDT
Nice Share
Rajeesh MenothPosted Aug 22, 2015, 10:49 PM EDT
Good One
RakeshPosted Aug 22, 2015, 8:53 PM EDT
Good
Saineshwar BageriPosted Aug 22, 2015, 8:50 PM EDT
Piyush i we need to do if i have to add more fields in table after creating a table
Gowtham KTOP 100Posted Aug 22, 2015, 5:56 PM EDT
Thanks for sharing
Karthikeyan KPosted Aug 22, 2015, 5:29 PM EDT
Nice one
Sam HobbsPosted Aug 22, 2015, 3:36 PM EDT
If you look at the dictionary definition of the word entity then you will see that the word implies independence but I think that independence is not relevant in the context of the Entity Framework. Entity is the word that Microsoft chose so we must use it but I think that the truth is that there is no essential difference between an entity and an object. Microsoft chose (I assume) to not use the word object to imply that the Entity Framework is not relevant to all objects but I think it helps to think of an entity as an object. After all is said, conceptually a class is an object. Saying that an entity is a class is saying that an entity is an object.