コード例 #1
0
ファイル: VmManager.cs プロジェクト: pande88/votchina
 //**********************************************************
 //* Добавление нового состояния Vm
 //**********************************************************
 public static void AddState(String description)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Int32 maxState = (from s in db.VmStates orderby s.State select s.State).Max();
         VmState vmState = new VmState { State = maxState + 1, Description = description };
         db.VmStates.InsertOnSubmit(vmState);
         db.SubmitChanges();
     }
 }
コード例 #2
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void DeleteVmState(VmState instance);
コード例 #3
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void UpdateVmState(VmState instance);
コード例 #4
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void InsertVmState(VmState instance);
コード例 #5
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void detach_VmStates(VmState entity)
		{
			this.SendPropertyChanging();
			entity.Vm = null;
		}
コード例 #6
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void attach_VmStates(VmState entity)
		{
			this.SendPropertyChanging();
			entity.Vm = this;
		}