コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }