Exemplo n.º 1
0
        /// <summary>
        /// Update into XMAdvertisingFeeDetail
        /// </summary>
        /// <param name="xmadvertisingfeedetail">XMAdvertisingFeeDetail</param>
        public void UpdateXMAdvertisingFeeDetail(XMAdvertisingFeeDetail xmadvertisingfeedetail)
        {
            if (xmadvertisingfeedetail == null)
            {
                return;
            }

            if (this._context.IsAttached(xmadvertisingfeedetail))
            {
                this._context.XMAdvertisingFeeDetails.Attach(xmadvertisingfeedetail);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMAdvertisingFeeDetail
        /// </summary>
        /// <param name="xmadvertisingfeedetail">XMAdvertisingFeeDetail</param>
        public void InsertXMAdvertisingFeeDetail(XMAdvertisingFeeDetail xmadvertisingfeedetail)
        {
            if (xmadvertisingfeedetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmadvertisingfeedetail))
            {
                this._context.XMAdvertisingFeeDetails.AddObject(xmadvertisingfeedetail);
            }

            this._context.SaveChanges();
        }