示例#1
0
 public void Edit(ExchangeHouse ExchangeHouse)
 {
     this._dBContext.Attach(ExchangeHouse);
     this._dBContext.Entry(ExchangeHouse).State = EntityState.Modified;
 }
示例#2
0
 public void Delete(ExchangeHouse ExchangeHouse)
 {
     //var ExchangeHouse = _dBContext.ExchangeHouse.SingleOrDefaultAsync(m => m.Id == id);
     this._dBContext.Attach(ExchangeHouse);
     this._dBContext.Entry(ExchangeHouse).State = EntityState.Modified;
 }
示例#3
0
 public void Add(ExchangeHouse ExchangeHouse)
 {
     this._dBContext.Add(ExchangeHouse);
 }