Cannot implicitly convert type System.Data.Entity.Core.Objects.ObjectResult to System.Data.Objects.ObjectResult

后端 未结 5 1839
感动是毒
感动是毒 2021-02-14 15:30

I am trying to update an EDMX Stored Procedure and I am getting this error:

Cannot implicitly convert type System.Data.Entity.Core.Objects.ObjectResult

5条回答
  •  死守一世寂寞
    2021-02-14 15:57

    Open the context.tt file in XML mode and change

    using System.Data.Objects;
    

    to

    using System.Data.Entity.Core.Objects;
    

提交回复
热议问题