public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path)
     where TProperty : class
 {
     _paths.Add(path);
     _service = _service.Include(path);
     return(this);
 }
예제 #2
0
 public ILoadService <T> Include <TProperty>(Expression <Func <T, TProperty> > path) where TProperty : class
 {
     _service.Include(path);
     if (_failoverService != null)
     {
         _failoverService.Include(path);
     }
     return(this);
 }
예제 #3
0
            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);
            }