Exemple #1
0
        /// <summary>
        /// Update into XMCustomerRank
        /// </summary>
        /// <param name="xmcustomerrank">XMCustomerRank</param>
        public void UpdateXMCustomerRank(XMCustomerRank xmcustomerrank)
        {
            if (xmcustomerrank == null)
            {
                return;
            }

            if (this._context.IsAttached(xmcustomerrank))
            {
                this._context.XMCustomerRanks.Attach(xmcustomerrank);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMCustomerRank
        /// </summary>
        /// <param name="xmcustomerrank">XMCustomerRank</param>
        public void InsertXMCustomerRank(XMCustomerRank xmcustomerrank)
        {
            if (xmcustomerrank == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmcustomerrank))
            {
                this._context.XMCustomerRanks.AddObject(xmcustomerrank);
            }

            this._context.SaveChanges();
        }