コード例 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                if (_db != null)
                {
                    _db.Dispose();
                    _db = null;
                }
            }

            _disposed = true;
        }
コード例 #2
0
 public LopRepository(QLThuHocPhiDbContext db) : base(db)
 {
 }
コード例 #3
0
 public Repo(QLThuHocPhiDbContext db)
 {
     _db    = db;
     _table = db.Set <Entity>();
 }