Exemplo n.º 1
0
        /// <summary>
        /// Update into XMLogisticsInfo
        /// </summary>
        /// <param name="xmlogisticsinfo">XMLogisticsInfo</param>
        public void UpdateXMLogisticsInfo(XMLogisticsInfo xmlogisticsinfo)
        {
            if (xmlogisticsinfo == null)
            {
                return;
            }

            if (this._context.IsAttached(xmlogisticsinfo))
            {
                this._context.XMLogisticsInfoes.Attach(xmlogisticsinfo);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMLogisticsInfo
        /// </summary>
        /// <param name="xmlogisticsinfo">XMLogisticsInfo</param>
        public void InsertXMLogisticsInfo(XMLogisticsInfo xmlogisticsinfo)
        {
            if (xmlogisticsinfo == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmlogisticsinfo))
            {
                this._context.XMLogisticsInfoes.AddObject(xmlogisticsinfo);
            }

            this._context.SaveChanges();
        }