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); }
partial void DeleteMlwrClass(MlwrClass instance);
partial void UpdateMlwrClass(MlwrClass instance);
partial void InsertMlwrClass(MlwrClass instance);
private void detach_MlwrClasses(MlwrClass entity) { this.SendPropertyChanging(); entity.Mlwr = null; }
private void attach_MlwrClasses(MlwrClass entity) { this.SendPropertyChanging(); entity.Mlwr = this; }