EF connection string as DbContext constructor argument

前端 未结 4 1067
北海茫月
北海茫月 2020-12-19 07:31

I have seen some code sample that put an entity framework connection string as a constructor argument when creating a new DbContext. But when I added a new ADO.NET entity da

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 07:52

    I fixed this, to work how it used to with EF4, by changing the "Code Generation Strategy" to "Legacy ObjectContext"

    enter image description here

提交回复
热议问题