示例#1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
示例#2
0
 public UnitOfWork(MyCaseContext context)
 {
     _context = context;
 }
示例#3
0
 public GenreRepository(MyCaseContext context)
 {
     _context = context;
 }