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

            if (this._context.IsAttached(xmpremiums))
            {
                this._context.XMPremiums.Attach(xmpremiums);
            }

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

            if (!this._context.IsAttached(xmpremiums))
            {
                this._context.XMPremiums.AddObject(xmpremiums);
            }

            this._context.SaveChanges();
        }