Exemplo n.º 1
0
 //**********************************************************
 //* Добавление нового типа 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();
     }
 }
Exemplo n.º 2
0
 partial void DeleteVmType(VmType instance);
Exemplo n.º 3
0
 partial void UpdateVmType(VmType instance);
Exemplo n.º 4
0
 partial void InsertVmType(VmType instance);
Exemplo n.º 5
0
		private void detach_VmTypes(VmType entity)
		{
			this.SendPropertyChanging();
			entity.Vm = null;
		}
Exemplo n.º 6
0
		private void attach_VmTypes(VmType entity)
		{
			this.SendPropertyChanging();
			entity.Vm = this;
		}