Entity Framework 6 Cannot build after adding stored procedures to data model

前端 未结 3 915
梦如初夏
梦如初夏 2021-01-30 04:03

I just downloaded entity framework 6 and created a brand new project to test it. We currently use EF 5.

After adding all my tables and stored procedures, I tried to buil

3条回答
  •  清歌不尽
    2021-01-30 04:46

    You can overcome this scenario by replacing:

    using System.Data.Objects;
    

    With:

    using System.Data.Entity.Core.Objects;
    

    You may need to update the using statements in your T4 templates, like your Context.tt file, so that auto-generated files continue to work when re-generating.

    Before

    After

提交回复
热议问题