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

            if (this._context.IsAttached(xmbusinessdataother))
            {
                this._context.XMBusinessDataOthers.Attach(xmbusinessdataother);
            }

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

            if (!this._context.IsAttached(xmbusinessdataother))
            {
                this._context.XMBusinessDataOthers.AddObject(xmbusinessdataother);
            }

            this._context.SaveChanges();
        }