Can't have the same table names in different entity framework models?

前端 未结 5 1571
心在旅途
心在旅途 2021-01-07 23:13

My application uses two different SQL 2008 databases. The databases have a few tables with the same name, ie. Users. I would like to use EF4 for both these data

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-07 23:53

    Another reason for that error is what happened to me: My project was copied from somewhere else and I renamed the project, so after compiling there were 2 DLL's in my bin folder. The one from the previous project and a brand new one, named according to the new project. Once I deleted the previous/old DLL the namespace ambiguity disappeared and the error went away.

提交回复
热议问题