带有实体框架的System.StackOverflowException

时间:2014-11-20 17:05:35

标签: c# asp.net entity-framework

我使用Entity Framework 5(DTO)创建了一个ASP.NET项目。当我运行项目时,我收到一个错误:

enter image description here

语言课程:

public class LanguageDto
{

    public int Id { get; set; }
    public string Name { get; set; }
    public string IconCls { get; set; }

    public  ICollection<UserDto> User { get; set; }     
}

错误:

{Cannot evaluate expression because the current thread is in a stack overflow state.}

0 个答案:

没有答案