コード例 #1
0
ファイル: VmManager.cs プロジェクト: pande88/votchina
 //**********************************************************
 //* Добавление нового типа Vm
 //**********************************************************
 public static void AddType(String description)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Int32 maxType = (from t in db.VmTypes orderby t.Type select t.Type).Max();
         VmType vmType = new VmType { Type = maxType + 1, Description = description };
         db.VmTypes.InsertOnSubmit(vmType);
         db.SubmitChanges();
     }
 }
コード例 #2
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void DeleteVmType(VmType instance);
コード例 #3
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void UpdateVmType(VmType instance);
コード例 #4
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void InsertVmType(VmType instance);
コード例 #5
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void detach_VmTypes(VmType entity)
		{
			this.SendPropertyChanging();
			entity.Vm = null;
		}
コード例 #6
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
		private void attach_VmTypes(VmType entity)
		{
			this.SendPropertyChanging();
			entity.Vm = this;
		}