i'm using this code
public List<T> GetWithNavigationTo(params string[] pathes)
{
(this._context as DbContext).Configuration.LazyLoadingEnabled = false;
(this._context as DbContext).Configuration.ProxyCreationEnabled = false;
var data = Entities.AsQueryable();
if (pathes != null)
{
foreach (string path in pathes)
{
data = data.Include(path);
}
}
return data.ToList();
}
To Load Entities With Specified Navigation Path the problem is when i add navigation path i got some data loss i mean that some entities are not retrieved any solutions?