//Dispose object - Garbagge collection protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public CommandRepository(CommandLetContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }