How can we help you today? How can we help you today?

Problems with Entity Framework

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:
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::
0

Comments

1 comment

  • Matt::
    Fixed it.
    The solution is to make sure the original assembly containing the model is not in the bin folder
    Matt::
    0

Add comment

Please sign in to leave a comment.