secret
Created

  • Download Gist
gistfile1.cs
C#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 
public class Response_User
{
public int Id { get; set; }
[ScaffoldColumn(false)]
public virtual Response Response { get; set; }
 
[ScaffoldColumn(false)]
public virtual User User { get; set; }
 
public User U
{
get
{
return DefaultTranslationOf<Response_User>.Property(r => r.User).Is(r => r.User).Evaluate(this);
}
}
}
 
> Response_User ru = context.Response_Users.Where(r => r.U.Equals(user)).WithTranslations().SingleOrDefault(r => r.Survey.Id == Id);
The specified type member 'U' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.