1) How to create tables dynamically using Entity Framework
2) How to update .edmx (After dynamic creation of table)
Create table dynamically
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted May 15, 2012, 8:47 AM EDT
Because , if you add tables in db, your EDMX file should be updated before accessing the object entity from your application.[because all the mapping will be there in the xml file].
Please read the below link for more information.
http://stackoverflow.com/questions/8950884/how-to-create-tables-in-sql-database-with-entity-framework-at-runtime-and-update