Page 1 of 1

Support for DynamicData

Posted: Tue 30 Sep 2008 22:07
by teckfreak
The Model generated by the Schema Modeller (*.dbml) does not work in Dynamic Data web application. It throws an error saying Invalid Data context. Does this model support Dynamic Data?

Posted: Wed 01 Oct 2008 12:09
by Shalex
A model generated by Schema Modeler doesn't support the Dynamic Data technology.

Support for Dynamic Data

Posted: Thu 09 Oct 2008 21:23
by jkuhn
When will OraDirect support model registration for Dynamic Data?

Posted: Fri 10 Oct 2008 12:19
by Shalex
Please send me (alexsh at devart.com) a test project to clarify what you mean.

Sent email but here is the exact error

Posted: Fri 10 Oct 2008 15:56
by jkuhn
The context type 'Facts.DataContext' is not supported.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: The context type 'Facts.DataContext' is not supported.

Source Error:

Line 29: // class in your application.
Line 30: //model.RegisterContext(typeof(YourDataContextType), new ContextConfiguration() { ScaffoldAllTables = false });
Line 31: model.RegisterContext(typeof(DataContext), new ContextConfiguration() { ScaffoldAllTables = true });
Line 32:
Line 33: // The following statement supports separate-page mode, where the List, Detail, Insert, and


Source File: C:\Projects\Forms1\WebApplication2\WebApplication2\Global.asax.cs    Line: 31

Stack Trace:

[ArgumentException: The context type 'Facts.DataContext' is not supported.]
System.Web.DynamicData.MetaModel.RegisterContext(Func`1 contextFactory, ContextConfiguration configuration) +336
System.Web.DynamicData.MetaModel.RegisterContext(Type contextType, ContextConfiguration configuration) +79
WebApplication2.Global.RegisterRoutes(RouteCollection routes) in C:\Projects\Forms1\WebApplication2\WebApplication2\Global.asax.cs:31
WebApplication2.Global.Application_Start(Object sender, EventArgs e) in C:\Projects\Forms1\WebApplication2\WebApplication2\Global.asax.cs:60

Posted: Tue 14 Oct 2008 10:53
by Shalex
The Dynamic Data technology is not supported. You should use the LINQ to Entities support.