Support for DynamicData
Support for DynamicData
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?
Support for Dynamic Data
When will OraDirect support model registration for Dynamic Data?
Sent email but here is the exact error
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
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