You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indexing is done!
But now I am implementing a search mechanism but I want to make query on top of child documents also.
So, is there anyway to bring the entity with all child documents (something like lazy load)
For example I have a model like below:
public class Entity1 {
public int Id {get; set;}
public string Name {get; set; }
public virtual Entity2 Related {get; set;}
}
public class Entity2 {
public int Id {get; set; }
public string Name {get; set; }
}
And I want to do a query like:
var results = _context.Where(m=>m.Entity2.Name == "George").ToList();
I want to list Entity1 but looking for an attribute of the child.
Is this possible?
The text was updated successfully, but these errors were encountered:
Indexing is done!
But now I am implementing a search mechanism but I want to make query on top of child documents also.
So, is there anyway to bring the entity with all child documents (something like lazy load)
For example I have a model like below:
And I want to do a query like:
var results = _context.Where(m=>m.Entity2.Name == "George").ToList();
I want to list Entity1 but looking for an attribute of the child.
Is this possible?
The text was updated successfully, but these errors were encountered: