示例#1
0
 public void Dispose()
 {
     if (Context != null)
     {
         Context.Dispose();
         Context = null;
     }
 }
示例#2
0
 public void Dispose()
 {
     if (_context != null)
     {
         _context.Dispose();
         _context = null;
     }
 }
示例#3
0
 public UnitOfWork(FoodApiContext context)
 {
     Context = context;
 }
示例#4
0
 public BaseRepository(FoodApiContext context)
 {
     _context = context;
 }