Can a String based Include alternative be created in Entity Framework Core?

后端 未结 4 1158
离开以前
离开以前 2020-12-15 06:35

On an API I need dynamic include but EF Core does not support String based include.

Because of this I created a mapper which maps Strings to lambda expressions added

4条回答
  •  天涯浪人
    2020-12-15 07:23

    String-based Include() shipped in EF Core 1.1. If you keep this extension you will get error "Ambiguous match found". I spent half day to search solution for this error. Finally i removed above extension and error was resolved.

提交回复
热议问题