/// <summary> /// Update into XMGiftStorageRecord /// </summary> /// <param name="xmgiftstoragerecord">XMGiftStorageRecord</param> public void UpdateXMGiftStorageRecord(XMGiftStorageRecord xmgiftstoragerecord) { if (xmgiftstoragerecord == null) { return; } if (this._context.IsAttached(xmgiftstoragerecord)) { this._context.XMGiftStorageRecords.Attach(xmgiftstoragerecord); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMGiftStorageRecord /// </summary> /// <param name="xmgiftstoragerecord">XMGiftStorageRecord</param> public void InsertXMGiftStorageRecord(XMGiftStorageRecord xmgiftstoragerecord) { if (xmgiftstoragerecord == null) { return; } if (!this._context.IsAttached(xmgiftstoragerecord)) { this._context.XMGiftStorageRecords.AddObject(xmgiftstoragerecord); } this._context.SaveChanges(); }