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

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

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