AutoMapper throwing StackOverflowException when calling ProjectTo() on IQueryable

前端 未结 4 1878
暗喜
暗喜 2020-12-15 18:56

I have created classes using EF Code First that have collections of each other. Entities:

public class Field
{
    public int Id { get; set; }
    public str         


        
4条回答
  •  情歌与酒
    2020-12-15 19:33

    Other option is using PreserveReferences() method.

    CreateMap().PreserveReferences();
    

提交回复
热议问题