Esempio n. 1
0
        /// <summary>
        /// Update into XMTypeTest
        /// </summary>
        /// <param name="xmtypetest">XMTypeTest</param>
        public void UpdateXMTypeTest(XMTypeTest xmtypetest)
        {
            if (xmtypetest == null)
            {
                return;
            }

            if (this._context.IsAttached(xmtypetest))
            {
                this._context.XMTypeTests.Attach(xmtypetest);
            }

            this._context.SaveChanges();
        }
Esempio n. 2
0
        /// <summary>
        /// Insert into XMTypeTest
        /// </summary>
        /// <param name="xmtypetest">XMTypeTest</param>
        public void InsertXMTypeTest(XMTypeTest xmtypetest)
        {
            if (xmtypetest == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmtypetest))
            {
                this._context.XMTypeTests.AddObject(xmtypetest);
            }

            this._context.SaveChanges();
        }