Esempio n. 1
0
        /// <summary>
        /// Update into AdvanceApplicationDetail
        /// </summary>
        /// <param name="advanceapplicationdetail">AdvanceApplicationDetail</param>
        public void UpdateAdvanceApplicationDetail(AdvanceApplicationDetail advanceapplicationdetail)
        {
            if (advanceapplicationdetail == null)
            {
                return;
            }

            if (this._context.IsAttached(advanceapplicationdetail))
            {
                this._context.AdvanceApplicationDetails.Attach(advanceapplicationdetail);
            }

            this._context.SaveChanges();
        }
Esempio n. 2
0
        /// <summary>
        /// Insert into AdvanceApplicationDetail
        /// </summary>
        /// <param name="advanceapplicationdetail">AdvanceApplicationDetail</param>
        public void InsertAdvanceApplicationDetail(AdvanceApplicationDetail advanceapplicationdetail)
        {
            if (advanceapplicationdetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(advanceapplicationdetail))
            {
                this._context.AdvanceApplicationDetails.AddObject(advanceapplicationdetail);
            }

            this._context.SaveChanges();
        }