1) How to create tables dynamically using Entity Framework
2) How to update .edmx (After dynamic creation of table)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted May 15, 2012, 12:47 PM
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