コード例 #1
0
ファイル: VmManager.cs プロジェクト: pande88/votchina
 //**********************************************************
 //* Добавление новой системы Vm
 //**********************************************************
 public static void AddSystem(String description)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Int32 maxSystem = (from s in db.VmSystems orderby s.System select s.System).Max();
         VmSystem vmSystem = new VmSystem { System = maxSystem + 1, Description = description };
         db.VmSystems.InsertOnSubmit(vmSystem);
         db.SubmitChanges();
     }
 }
コード例 #2
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void DeleteVmSystem(VmSystem instance);
コード例 #3
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void UpdateVmSystem(VmSystem instance);
コード例 #4
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void InsertVmSystem(VmSystem instance);
コード例 #5
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void detach_VmSystems(VmSystem entity)
		{
			this.SendPropertyChanging();
			entity.Vm = null;
		}
コード例 #6
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void attach_VmSystems(VmSystem entity)
		{
			this.SendPropertyChanging();
			entity.Vm = this;
		}