public void addScenarioToUtility(long scenarioID) { foreach (var qaType in db.QualityAttributeResponseTypes) { var utility = new Utility(); utility.QualityAttributeResponseTypeID = qaType.ID; utility.ScenarioID = scenarioID; utility.Description = ""; //won't accept null for some reason db.Utilities.InsertOnSubmit(utility); }//insert each Quality Attribute Response type for scenario //to be defined later by user }
private void detach_Utilities(Utility entity) { this.SendPropertyChanging(); entity.QualityAttributeResponseType = null; }
partial void DeleteUtility(Utility instance);
partial void UpdateUtility(Utility instance);
partial void InsertUtility(Utility instance);
private void detach_Utilities(Utility entity) { this.SendPropertyChanging(); entity.Scenario = null; }
public ScenarioViewModel(Utility utility) { Utility = utility; }