Last post Sep 08, 2014 10:02 PM by Kevin Shen - MSFT
Sep 06, 2014 05:55 AM|karlsvensson|LINK
Hi, I'm a beginner with Entity Framework and I would appreciate to get some help to set the architecture of my MVC application.
The subject is about how to create the objects model dynamically, giving to the user the option to assign/attach the information from one table to another.
In a "non-dynamic" scenario the SQL Tables could be these:
My idea is to abstract and separate Entities in the Database like these next:
In this way user can create types of persons, types of addresses, associate and address to a person, and the same to another. Linking the 3 entities dynamically.
Is possible this approach with EF and MVC?
Can object inheritance and associations of the model be set dynamically?
Would it works without a bad performance?
Thx for help!
Sep 08, 2014 10:02 PM|Kevin Shen - MSFT|LINK
Thanks for your post here.
As far as I know ,it seem that it is hard for you to achieve that goal.
I suggest that you first you can learn how to use entity framework :
then you can try the tutorial about how to use Entity Framework in an mvc application: