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

            //DbSet = Context.Set<T>();
            //DbSet.AsNoTracking();
        }
        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)
 {
 }