/// <summary> /// Update into XMStorageProductDetails /// </summary> /// <param name="xmstorageproductdetails">XMStorageProductDetails</param> public void UpdateXMStorageProductDetails(XMStorageProductDetails xmstorageproductdetails) { if (xmstorageproductdetails == null) return; if (this._context.IsAttached(xmstorageproductdetails)) this._context.XMStorageProductDetails.Attach(xmstorageproductdetails); this._context.SaveChanges(); }
/// <summary> /// Insert into XMStorageProductDetails /// </summary> /// <param name="xmstorageproductdetails">XMStorageProductDetails</param> public void InsertXMStorageProductDetails(XMStorageProductDetails xmstorageproductdetails) { if (xmstorageproductdetails == null) return; if (!this._context.IsAttached(xmstorageproductdetails)) this._context.XMStorageProductDetails.AddObject(xmstorageproductdetails); this._context.SaveChanges(); }