示例#1
0
        /// <summary>
        /// Update into XMJDZYSaleCoefficients
        /// </summary>
        /// <param name="xmjdzysalecoefficients">XMJDZYSaleCoefficients</param>
        public void UpdateXMJDZYSaleCoefficients(XMJDZYSaleCoefficients xmjdzysalecoefficients)
        {
            if (xmjdzysalecoefficients == null)
            {
                return;
            }

            if (this._context.IsAttached(xmjdzysalecoefficients))
            {
                this._context.XMJDZYSaleCoefficients.Attach(xmjdzysalecoefficients);
            }

            this._context.SaveChanges();
        }
示例#2
0
        /// <summary>
        /// Insert into XMJDZYSaleCoefficients
        /// </summary>
        /// <param name="xmjdzysalecoefficients">XMJDZYSaleCoefficients</param>
        public void InsertXMJDZYSaleCoefficients(XMJDZYSaleCoefficients xmjdzysalecoefficients)
        {
            if (xmjdzysalecoefficients == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmjdzysalecoefficients))
            {
                this._context.XMJDZYSaleCoefficients.AddObject(xmjdzysalecoefficients);
            }

            this._context.SaveChanges();
        }