Exemple #1
0
 public static Int32 AddMlwrClass(String name, String comment)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         MlwrClass mlwrcl = new MlwrClass()
         {
             Name = name,
             Comment = comment
         };
         db.MlwrClasses.InsertOnSubmit(mlwrcl);
         db.SubmitChanges();
         return db.MlwrClasses.FirstOrDefault<MlwrClass>(x => x.Name == name).id;
     }
     //            TableUpdated(Table.MLWRS);
 }
Exemple #2
0
 partial void DeleteMlwrClass(MlwrClass instance);
Exemple #3
0
 partial void UpdateMlwrClass(MlwrClass instance);
Exemple #4
0
 partial void InsertMlwrClass(MlwrClass instance);
Exemple #5
0
		private void detach_MlwrClasses(MlwrClass entity)
		{
			this.SendPropertyChanging();
			entity.Mlwr = null;
		}
Exemple #6
0
		private void attach_MlwrClasses(MlwrClass entity)
		{
			this.SendPropertyChanging();
			entity.Mlwr = this;
		}