Entity Framework - redundant connection string

后端 未结 4 1727
眼角桃花
眼角桃花 2021-02-08 18:57

I\'m using Entity Framework 4 in my project. The Framework has created its own connection string, so my web.config connectionStrings section file looks following:

4条回答
  •  太阳男子
    2021-02-08 19:47

    1. Manualy create DbConnection from ordinary connection string
    2. Manualy create MetadataWorkspace object.
    3. Create EntityConnection using this ctor.
    4. Pass entity connection to ObjectContext constructor.

提交回复
热议问题