/// <summary> /// Update into XMCompanyCustom /// </summary> /// <param name="xmcompanycustom">XMCompanyCustom</param> public void UpdateXMCompanyCustom(XMCompanyCustom xmcompanycustom) { if (xmcompanycustom == null) { return; } if (this._context.IsAttached(xmcompanycustom)) { this._context.XMCompanyCustoms.Attach(xmcompanycustom); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMCompanyCustom /// </summary> /// <param name="xmcompanycustom">XMCompanyCustom</param> public void InsertXMCompanyCustom(XMCompanyCustom xmcompanycustom) { if (xmcompanycustom == null) { return; } if (!this._context.IsAttached(xmcompanycustom)) { this._context.XMCompanyCustoms.AddObject(xmcompanycustom); } this._context.SaveChanges(); }