Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a question about EF(Entity Framework)

If I have a database that allows the users to add columns and/or tables with columns ( no deletions ) as well as schemas at run time can the EF handle these modifications to the underlying data store without much tweaking or is this asking too much? Can it regenerate the EF and its classes in code at run time?

I want to change the database name, schema name means connection string at runtime and the EF will dynamically update the previous EF Model as well as it's entity at runtime and I want to use that entity suppose(e.g Category Entity) to return data like json/atom+xml to as webapi odata service at runtime. If possible then please anyone can send me solution by giving source code or demo project using WebAPI OData as early as possible. Thanks in advance.

What I have tried:

............................................................................
Posted
Updated 18-Feb-16 6:57am

1 solution

You're asking WAY too much of EF. If this was a requirement (change the DB schema on-the-fly) EF should never have been used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900