entity framework - create table in database using EF from our applictaion Dynamically -


can create table in database our web application dynamically using ef user define fields table. working on mvc 4.

is possible ? , if yes how it.

depends on understand dynamic here. changing runtime version of context isnt possible.

generating, compiling, loading new code is. new context, , poco code can declared. compiled , loaded. controlled piece of running code.

however, ongoing lifecycle gets complicated. use of code first migrations becomes tricky.
how manage chnages extensions in prod. how merge ongoing dev , prod. managing mapping in fluent api in generated code awful. cant in attributes.

the context backflips , automated migrations nightmares have cost me many night.

dealing main build natural extensions , production/localised implementation extension gets hard. need make sure incorporated build.

and must need know how manage different contexts on same db @ same time.

i have unfinished project @ moment. have put on hold until on ef6. expect spend several weeks on topic alone. , im still not sure want continue down path. considering moving meta data / bucket data approach.

so possible difficult (in opinion @ least). easier in ef6 due multiple context support. still suffer of these issues , require code generation , compilation still.

good luck...


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -