예제 #1
0
        /// <summary>
        /// Update into XMAllocateInfo
        /// </summary>
        /// <param name="xmallocateinfo">XMAllocateInfo</param>
        public void UpdateXMAllocateInfo(XMAllocateInfo xmallocateinfo)
        {
            if (xmallocateinfo == null)
            {
                return;
            }

            if (this._context.IsAttached(xmallocateinfo))
            {
                this._context.XMAllocateInfoes.Attach(xmallocateinfo);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into XMAllocateInfo
        /// </summary>
        /// <param name="xmallocateinfo">XMAllocateInfo</param>
        public void InsertXMAllocateInfo(XMAllocateInfo xmallocateinfo)
        {
            if (xmallocateinfo == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmallocateinfo))
            {
                this._context.XMAllocateInfoes.AddObject(xmallocateinfo);
            }

            this._context.SaveChanges();
        }