private GenericRepo(GenericRepo <T> other) { _logger = other._logger; _db = other._db; _dbSet = other._dbSet; _tracking = other._tracking; _include = other._include; }
public IGenericRepo <T> Include(params Expression <Func <T, object> >[] include) { var ret = new GenericRepo <T>(this) { _include = include }; return(ret); }
public IGenericRepo <T> AsTracking(bool tracking) { var ret = new GenericRepo <T>(this) { _tracking = tracking }; return(ret); }