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

            if (this._context.IsAttached(xminstallationlist))
            {
                this._context.XMInstallationLists.Attach(xminstallationlist);
            }

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

            if (!this._context.IsAttached(xminstallationlist))
            {
                this._context.XMInstallationLists.AddObject(xminstallationlist);
            }

            this._context.SaveChanges();
        }