开发者

Entity Framework Problem using two connections with same stored procedure name

开发者 https://www.devze.com 2023-03-07 04:32 出处:网络
I\'ve got two edmx files in my project that each access a stored procedure with the same name (two different databases).My problem is that the namespace used for the storage model is the namespace of

I've got two edmx files in my project that each access a stored procedure with the same name (two different databases). My problem is that the namespace used for the storage model is the namespace of the project, not the Model Namespace.

This i开发者_StackOverflow社区s causing compilation issues as they are seen as the same class.

Any ideas on how to make the classes unique to the model?

I'm using Visual Web Developer Express (.net 4.0) and C# accessing a SQL Server 2005 back-end.

Thanks.


We put each model in its own folder to avoid this problem. This results in a different namespace for each model.

0

精彩评论

暂无评论...
验证码 换一张
取 消