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

            if (this._context.IsAttached(xmzmdemand))
            {
                this._context.XMZMDemands.Attach(xmzmdemand);
            }

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

            if (!this._context.IsAttached(xmzmdemand))
            {
                this._context.XMZMDemands.AddObject(xmzmdemand);
            }

            this._context.SaveChanges();
        }