/// <summary> /// Update into BudgetSetting /// </summary> /// <param name="budgetsetting">BudgetSetting</param> public void UpdateBudgetSetting(BudgetSetting budgetsetting) { if (budgetsetting == null) { return; } if (this._context.IsAttached(budgetsetting)) { this._context.BudgetSettings.Attach(budgetsetting); } this._context.SaveChanges(); }
/// <summary> /// Insert into BudgetSetting /// </summary> /// <param name="budgetsetting">BudgetSetting</param> public void InsertBudgetSetting(BudgetSetting budgetsetting) { if (budgetsetting == null) { return; } if (!this._context.IsAttached(budgetsetting)) { this._context.BudgetSettings.AddObject(budgetsetting); } this._context.SaveChanges(); }