How do I map an OData query against a DTO to another entity?

后端 未结 5 504
梦谈多话
梦谈多话 2020-12-05 01:30

My question is very similar to this one: How do I map an OData query against a DTO to an EF entity? I have a simple setup to test the ASP.NET Web API OData V4 $filter functi

5条回答
  •  广开言路
    2020-12-05 01:47

    To me the solution was just adding the DTO to the EDM config (v4):

    edmBuilder.EntitySet("Contacts");
    edmBuilder.EntityType();
    

提交回复
热议问题