Beispiel #1
0
        /// <summary>
        /// Update into AdvanceApplication
        /// </summary>
        /// <param name="advanceapplication">AdvanceApplication</param>
        public void UpdateAdvanceApplication(AdvanceApplication advanceapplication)
        {
            if (advanceapplication == null)
            {
                return;
            }

            if (this._context.IsAttached(advanceapplication))
            {
                this._context.AdvanceApplications.Attach(advanceapplication);
            }

            this._context.SaveChanges();
        }
Beispiel #2
0
        /// <summary>
        /// Insert into AdvanceApplication
        /// </summary>
        /// <param name="advanceapplication">AdvanceApplication</param>
        public void InsertAdvanceApplication(AdvanceApplication advanceapplication)
        {
            if (advanceapplication == null)
            {
                return;
            }

            if (!this._context.IsAttached(advanceapplication))
            {
                this._context.AdvanceApplications.AddObject(advanceapplication);
            }

            this._context.SaveChanges();
        }