Support for DynamicData

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
teckfreak
Posts: 5
Joined: Tue 30 Sep 2008 22:04

Support for DynamicData

Post by 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?

Shalex
Site Admin
Posts: 8248
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 01 Oct 2008 12:09

A model generated by Schema Modeler doesn't support the Dynamic Data technology.

jkuhn
Posts: 3
Joined: Fri 26 Sep 2008 20:50

Support for Dynamic Data

Post by jkuhn » Thu 09 Oct 2008 21:23

When will OraDirect support model registration for Dynamic Data?

Shalex
Site Admin
Posts: 8248
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 10 Oct 2008 12:19

Please send me (alexsh at devart.com) a test project to clarify what you mean.

jkuhn
Posts: 3
Joined: Fri 26 Sep 2008 20:50

Sent email but here is the exact error

Post by 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

Shalex
Site Admin
Posts: 8248
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Tue 14 Oct 2008 10:53

The Dynamic Data technology is not supported. You should use the LINQ to Entities support.

Post Reply