Home
Options

Dynamic EF in an app?

One of the things I love about LinqPad is how it dynamically generates the EF.

In an actual application I find that maintaining (changing and synchronizing) a custom model is a bit tedious. Anyone know of a way of using "dynamic" EF in an application so that effectively the model dynamically generates? I would assume I would need to run some 'regenerate' command when the database changes, but... perhaps this is just wishful thinking.

Comments

  • Options
    LINQPad dynamically generates the typed data context for LINQ-to-SQL queries. Are you asking if the same is possible in Visual Studio, with Entity Framework?

    I'm not aware of anything like that, but re-generating the model from the database isn't too hard as I remember - isn't it just a matter of right-clicking the model and choosing 'Update from database'?
Sign In or Register to comment.