How to make lazy-loading work with EF Core 2.1.0 and proxies

前端 未结 3 609
北海茫月
北海茫月 2020-12-29 07:48

I have the following models:

public class Session
{
    public int SessionID { get; set; }
    public int UserID { get; set; }

    public virtual User User          


        
3条回答
  •  佛祖请我去吃肉
    2020-12-29 07:58

    I solved this by setting JSON serialization in service like this answer https://stackoverflow.com/a/49350457/4178475

提交回复
热议问题