Exemplo n.º 1
0
 //**********************************************************
 //* Добавление нового состояния 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();
     }
 }
Exemplo n.º 2
0
 partial void DeleteVmState(VmState instance);
Exemplo n.º 3
0
 partial void UpdateVmState(VmState instance);
Exemplo n.º 4
0
 partial void InsertVmState(VmState instance);
Exemplo n.º 5
0
		private void detach_VmStates(VmState entity)
		{
			this.SendPropertyChanging();
			entity.Vm = null;
		}
Exemplo n.º 6
0
		private void attach_VmStates(VmState entity)
		{
			this.SendPropertyChanging();
			entity.Vm = this;
		}