Let's suppose I've an Entity like this:
Public classs Blog{
public int x,
public bool y,
public virtual ICollection<someType> someTypes
public virtual ICollection<Post> Posts
}
Now I want to fire the following query:
repository.findBy(
blogs => blogs.y,
blogs => blogs.someTypes,
blogs => blogs.Posts.where(someVar => someVar.someField == someValue)
).select()
someField is a property of Post.
where findBy is :
IQueryable<T> FindBy(Expression<Func<T, bool>> predicate = null, params Expression<Func<T, object>>[] includes);
It gives the following error:
The Include path expression must refer to a navigation property defined on the type.Use dotted paths for reference navigation properties and the Select operator for collection navigation properties