Exemple #1
0
        public BaseRepository(minhasTarefasContext context)
        {
            _context = context;

            _context.Configuration.AutoDetectChangesEnabled = false;
            _context.Configuration.EnsureTransactionsForFunctionsAndCommands = false;
            _context.Configuration.LazyLoadingEnabled       = false;
            _context.Configuration.UseDatabaseNullSemantics = false;
            _context.Configuration.ValidateOnSaveEnabled    = false;

            m_DbSet = _context.Set <TEntity>();
        }
Exemple #2
0
 public TarefaRepository(minhasTarefasContext context) : base(context)
 {
 }
Exemple #3
0
 public UnitOfWork()
 {
     _context = new minhasTarefasContext();
 }