Problems with Entity Framework

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

Problems with Entity Framework

Postby Matt:: » Tue Oct 26, 2010 5:07 pm

Is there anything special I need to do to use SmartAssembly with Microsoft Entity Framework (3.5 SP1)?

I'm getting an exception along the lines of:

Code: Select all
Schema specified is not valid.

DataModel.MyModel.csdl(3,4) : error 0019: The EntityContainer name must be unique. An EntityContainer with the name 'MyContainer' is already defined.
DataModel.MyModel.csdl(86,4) : error 0019: Each type name in a schema must be unique. Type name 'MyModel.MyType' was already defined.
.
.
.

repeated for all the classes.

Is there something specical I need to do or might I have made a simple mistake? The project settings have 'merging' on, and nothing else.

regards

Matt
Matt::
 
Posts: 4
Joined: Mon Sep 20, 2010 11:31 am

Postby Matt:: » Wed Oct 27, 2010 9:15 am

Fixed it.
The solution is to make sure the original assembly containing the model is not in the bin folder
Matt::
 
Posts: 4
Joined: Mon Sep 20, 2010 11:31 am


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests