Пример #1
0
        /// <summary>
        /// Update into LogisticsAging
        /// </summary>
        /// <param name="logisticsaging">LogisticsAging</param>
        public void UpdateLogisticsAging(LogisticsAging logisticsaging)
        {
            if (logisticsaging == null)
            {
                return;
            }

            if (this._context.IsAttached(logisticsaging))
            {
                this._context.LogisticsAgings.Attach(logisticsaging);
            }

            this._context.SaveChanges();
        }
Пример #2
0
        /// <summary>
        /// Insert into LogisticsAging
        /// </summary>
        /// <param name="logisticsaging">LogisticsAging</param>
        public void InsertLogisticsAging(LogisticsAging logisticsaging)
        {
            if (logisticsaging == null)
            {
                return;
            }

            if (!this._context.IsAttached(logisticsaging))
            {
                this._context.LogisticsAgings.AddObject(logisticsaging);
            }

            this._context.SaveChanges();
        }