Answered by:
Adding Dynamic Data to MVC 3 w/ EF 4.1

Question
-
User-1882961111 posted
How can I add Dynamic Data to an existing MVC 3 app that is running EntityFramework 4.1?
I would also like to know if I could add MVC to an existing Dynamic Data project.
I've gone through quite a few blogs but many are older and I keep running into various problems. Is there any easy way to do this? Some tutorial for MVC 3?
kind of helpful tutorials:
http://blog.davidebbo.com/2011/01/using-dynamic-data-with-ef-code-first.html ( this is cool, but how do I combine w/ MVC 3 ? )
http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx ( only got webform working, not dynamicdata)
old tutorials..
http://padcom13.blogspot.com/2009/04/adding-dynamicdata-to-mvc-application.html
http://haacked.com/archive/2008/06/11/aspnetmvc-and-dynamicdata.aspx (outdated link to nonexistent sample project)
http://blogs.msdn.com/b/scothu/archive/2008/06/23/how-to-add-dynamic-data-to-an-existing-web-site.aspx
Monday, January 9, 2012 3:16 PM
Answers
-
User3866881 posted
Hello hometownstru:)
As far as I see……(Kindly correct me if I take you wrongly……),No support directly for Complex type in DD。
Best reguards!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, January 10, 2012 8:52 PM
All replies
-
User-330204900 posted
Sorry hometownstruc, I've not done any work with MVC since v2, however there is not reason why they will not play together I believe Scott Hanselman post is the best way to proceed. The posts are old but the principals are the same.
Tuesday, January 10, 2012 6:41 AM -
User-1882961111 posted
Thanks for your reply. I am starting to figure it out. Can you tell me if there is any support for Entity Framework complex types in Dynamic Data now? I might have to redesign my model to work with DD. It currently uses composition to simulate multiple inheritance but that gives way too many tables. I thought complex types would be a good solution but I saw they used to be unsupported in DD. Any change with that? Or workarounds that are easier than flattening my data model? Thanks.
Tuesday, January 10, 2012 10:53 AM -
User3866881 posted
Hello hometownstru:)
As far as I see……(Kindly correct me if I take you wrongly……),No support directly for Complex type in DD。
Best reguards!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, January 10, 2012 8:52 PM