Example #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this._dataContext == null)
            {
                return;
            }

            this._dataContext.Dispose();
            this._dataContext = null;
        }
Example #2
0
 public UnitOfWork(AnonymousBidderDataContext context)
 {
     _dataContext = context;
 }
Example #3
0
 public UnitOfWork()
 {
     _dataContext = new AnonymousBidderDataContext();
 }