コード例 #1
0
        /// <summary>
        /// Update into CustomerAction
        /// </summary>
        /// <param name="customeraction">CustomerAction</param>
        public void UpdateCustomerAction(CustomerAction customeraction)
        {
            if (customeraction == null)
            {
                return;
            }

            if (this._context.IsAttached(customeraction))
            {
                this._context.CustomerActions.Attach(customeraction);
            }

            this._context.SaveChanges();
        }
コード例 #2
0
        /// <summary>
        /// Insert into CustomerAction
        /// </summary>
        /// <param name="customeraction">CustomerAction</param>
        public void InsertCustomerAction(CustomerAction customeraction)
        {
            if (customeraction == null)
            {
                return;
            }

            if (!this._context.IsAttached(customeraction))
            {
                this._context.CustomerActions.AddObject(customeraction);
            }

            this._context.SaveChanges();
        }