예제 #1
0
        /// <summary>
        /// Update into XMFinancialCapitalFlow
        /// </summary>
        /// <param name="xmfinancialcapitalflow">XMFinancialCapitalFlow</param>
        public void UpdateXMFinancialCapitalFlow(XMFinancialCapitalFlow xmfinancialcapitalflow)
        {
            if (xmfinancialcapitalflow == null)
            {
                return;
            }

            if (this._context.IsAttached(xmfinancialcapitalflow))
            {
                this._context.XMFinancialCapitalFlows.Attach(xmfinancialcapitalflow);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into XMFinancialCapitalFlow
        /// </summary>
        /// <param name="xmfinancialcapitalflow">XMFinancialCapitalFlow</param>
        public void InsertXMFinancialCapitalFlow(XMFinancialCapitalFlow xmfinancialcapitalflow)
        {
            if (xmfinancialcapitalflow == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmfinancialcapitalflow))
            {
                this._context.XMFinancialCapitalFlows.AddObject(xmfinancialcapitalflow);
            }

            this._context.SaveChanges();
        }