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

            if (this._context.IsAttached(xmdailysaleinfo))
            {
                this._context.XMDailySaleInfoes.Attach(xmdailysaleinfo);
            }

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

            if (!this._context.IsAttached(xmdailysaleinfo))
            {
                this._context.XMDailySaleInfoes.AddObject(xmdailysaleinfo);
            }

            this._context.SaveChanges();
        }