public Big4Repositary(DbContext context) { logger = new DataVersionCreator <TEntity>(); this.context = context; this.dbSet = context.Set <TEntity>(); }
public virtual T Find(params object[] keyValues) { if (IsParentInPreview) { // todo , try to find a way to put this logic in to a factory //currently park Detaiul is hard coded var logger = new DataVersionCreator <TP>(); return(logger.GetAllChildrenByVersion <T>(_version, getChildren).FirstOrDefault(t => findId(t).Equals((TID)keyValues.First()))); } else { var logger = new DataVersionCreator <T>(); return(logger.GetByIdAndVersion(keyValues[0].ToString(), _version)); } }