public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path) where TProperty : class { _paths.Add(path); _service = _service.Include(path); return(this); }
public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path) where TProperty : class { _service.Include(path); if (_failoverService != null) { _failoverService.Include(path); } return(this); }
public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path) where TProperty : class { _service.Include(path); var properties = string.Join(".", path.Body.ToString().Split('.').Where(p => !p.StartsWith("Select")).Select(p => p.TrimEnd(')')).Skip(1)); _paths.Add(properties); return(this); }