User selects a database and its table, and will browse the table in a web application. Can I achieve that with Entity Framework? I know EF is ORM framework but in this case, I may not create edmx file for each selection. Even if I did it, how do I create, say, POCO objects dynamically according to the table? What should I do in this case? Do I have to go with low-level ADO.NET?
Share
I think Entity Framework is unnecessary in this case. It might certainly be possible to use EF for something like this, but if it’s a simple case of just getting a list of available table names from the database, and letting the user select a table to view, I would simply do the following:
Create drop down list on the site, and populate it using result from query:
Then after the user selects an item from the dropdown, you can bind your grid using Ado.net. Something like: