/// <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(); }
/// <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(); }