public void Dispose() { if (_dataContext != null) { _dataContext.Dispose(); _dataContext = null; } }
public BillingRepository(System.Data.Common.DbConnection connection) { _dataContext = new BillingModelContainer(connection); }
public BillingRepository() { _dataContext = new BillingModelContainer(); }