Support for DynamicData

Support for DynamicData

Postby teckfreak » Tue 30 Sep 2008 22:07

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?
teckfreak
 
Posts: 5
Joined: Tue 30 Sep 2008 22:04

Postby Shalex » Wed 01 Oct 2008 12:09

A model generated by Schema Modeler doesn't support the Dynamic Data technology.
Shalex
Devart Team
 
Posts: 7151
Joined: Thu 14 Aug 2008 12:44

Support for Dynamic Data

Postby jkuhn » Thu 09 Oct 2008 21:23

When will OraDirect support model registration for Dynamic Data?
jkuhn
 
Posts: 3
Joined: Fri 26 Sep 2008 20:50

Postby Shalex » Fri 10 Oct 2008 12:19

Please send me (alexsh at devart.com) a test project to clarify what you mean.
Shalex
Devart Team
 
Posts: 7151
Joined: Thu 14 Aug 2008 12:44

Sent email but here is the exact error

Postby jkuhn » Fri 10 Oct 2008 15:56

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
jkuhn
 
Posts: 3
Joined: Fri 26 Sep 2008 20:50

Postby Shalex » Tue 14 Oct 2008 10:53

The Dynamic Data technology is not supported. You should use the LINQ to Entities support.
Shalex
Devart Team
 
Posts: 7151
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle