コード例 #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();
        }