I have this entity:
public class Crash : BaseModel
{
public string Message { get; set; }
public DateTime Time { get; set; }
public int ApplicationId { get; set; }
public virtual Application Application { get; set; }
}
The following works perfect and navigation property Application is correct:
_context.Set<T>().ToList();
But this one those not fill the Application:
_context.Set<T>().First(expression);
The correct item is retrieved, though In the acquired item property Application is null.
What should I do to find an item with expression and still have auto loading of the navigation properties??