I would like to realize a dynamic query builder using ASPNET MVC; i will ask the user db parameters (hostname, db, user, passwd) and then would like to use Linq to query the database using Entity Framework. For doing this i need to create the Entity Data Model at runtime ... is it possibile a similar thing?
-
hmmm what is the desired effect, code-generation of the classes?Nomad101– Nomad1012013-05-04 12:23:15 +00:00Commented May 4, 2013 at 12:23
-
@Cris: how is it possible to create a EntityConnection based on the parameters without the CSL,SSDL & MSL in place.Saravanan– Saravanan2013-05-04 12:37:47 +00:00Commented May 4, 2013 at 12:37
-
I'm quite 'open minded' but it ain't clear how do you imagine to e.g. use LINQ if you don't have compiled entities. Apart from using 'dynamic linq'. You have an arbitrary db, right? and you'd like to pull that 'in' and into EDM, and use some EF 'flavor' (db, model, code first?)NSGaga– NSGaga2013-05-06 21:12:59 +00:00Commented May 6, 2013 at 21:12
-
Yes, i would like to compile entities at runtime ... is that impossible?Cris– Cris2013-05-06 22:14:30 +00:00Commented May 6, 2013 at 22:14
-
1This may be useful to you. Not EF but allows for zero config database first dynamic queries: keroseneorm.codeplex.commr.freeze– mr.freeze2013-05-11 23:18:33 +00:00Commented May 11, 2013 at 23:18
|
Show 5 more comments