Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Adding an entity framework data provider to C1.

$
0
0
Hi,

Visual Studio 2012 and entity framework 4.

I followed the tutorial and examples and after much pain and many tears I got the project to compile. I had to remove some new .dlls and add older ones to get the project to work. I also had to wrestle with VS to get access to the entity classes.

Anyway when I run C1 out of Visual Studio I get:

The type 'CompDataProvider.myToDoList' was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive, nested or generic, and does not inherit from EntityObject.

When I remove the (apparently) guilty inheritance from the data provider and run C1 I get:

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
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.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Source Error:


Line 8: ApplicationLevelEventHandlers.LogApplicationLevelErrors = false;
Line 9:
Line 10: ApplicationLevelEventHandlers.Application_Start(sender, e);
Line 11: }

I'm stumped.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>