public BaseRepository(IContextManager contextManager) { this.contextManager = contextManager; this.Context = contextManager.GetContext(); this.DbSet = Context.Set <TEntity>(); }
public UnitOfWork(IContextManager contextManager) { this.dbContext = contextManager.GetContext(); validationResult = new ValidationResult(); }