예제 #1
0
 partial void DeleteConsistencyRule(ConsistencyRule instance);
예제 #2
0
 partial void UpdateConsistencyRule(ConsistencyRule instance);
예제 #3
0
		private void detach_ConsistencyRules(ConsistencyRule entity)
		{
			this.SendPropertyChanging();
			entity.Asset = null;
		}
예제 #4
0
 partial void InsertConsistencyRule(ConsistencyRule instance);
예제 #5
0
 private void saveConsistencyRules()
 {
     foreach (DataGridViewRow row in dataGrid_consistencyRules.Rows)
     {
         if (row.IsNewRow)
             continue;
         ConsistencyRule rule = new ConsistencyRule();
         rule.mValue = (String)row.Cells[0].Value;
         rule.sValue = (String)row.Cells[2].Value;
         rule.condition = (String)row.Cells[1].Value;
         rule.importance = ConsistencyRule.getImportance((String)row.Cells[3].Value);
         asset.ConsistencyRules.Add(rule);
     }
     DivanDataContext.Instance.SubmitChanges();
 }