Esempio n. 1
0
 public GiraUoW(GiraDbContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException(nameof(context));
     }
     _context = context;
 }
Esempio n. 2
0
        private void Dispose(bool disposing)
        {
            if (!disposing || _context == null)
            {
                return;
            }

            _context.Dispose();
            _context = null;
        }