Skip to content

Instantly share code, notes, and snippets.

@spockz
Created June 1, 2011 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spockz/6a226cd2dbe1306a9094 to your computer and use it in GitHub Desktop.
Save spockz/6a226cd2dbe1306a9094 to your computer and use it in GitHub Desktop.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment