Red Gate forums :: View topic - Problems with Entity Framework
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

Problems with Entity Framework

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
Matt::



Joined: 20 Sep 2010
Posts: 4

PostPosted: Tue Oct 26, 2010 5:07 pm    Post subject: Problems with Entity Framework Reply with quote

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:

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
Back to top
View user's profile Send private message
Matt::



Joined: 20 Sep 2010
Posts: 4

PostPosted: Wed Oct 27, 2010 9:15 am    Post subject: Reply with quote

Fixed it.
The solution is to make sure the original assembly containing the model is not in the bin folder
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group