예제 #1
0
        //protected DbSet<T> DbSet { get; set; }
        public DropDownValues(MAS_DB MAS_DbContext)
        {
            Context = MAS_DbContext;

            //DbSet = Context.Set<T>();
            //DbSet.AsNoTracking();
        }
예제 #2
0
        public Repository(MAS_DB context)
        {
            Context = context;

            DbSet = Context.Set <TEntity>();
            DbSet.AsNoTracking();
        }
예제 #3
0
파일: UnitOfWork.cs 프로젝트: 23swift/MAP
 public void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
예제 #4
0
 public MAEFRepository(MAS_DB context)
     : base(context)
 {
 }
예제 #5
0
 public POSRepository(MAS_DB context)
     : base(context)
 {
 }
예제 #6
0
 public RequestRepository(MAS_DB context)
     : base(context)
 {
 }
 public BranchRepository(MAS_DB context)
     : base(context)
 {
 }
 public NewAffiliationRepository(MAS_DB context)
     : base(context)
 {
 }