public static void Add(dbDataContext db, string subUnitName, int unit, int access_level, string email) { sub_unit newSubUnit = new sub_unit(); newSubUnit.sub_unit_name = subUnitName; newSubUnit.unit_ref = unit; newSubUnit.access_level = access_level; newSubUnit.mailto = email; db.sub_units.InsertOnSubmit(newSubUnit); db.SubmitChanges(); }
partial void Deletesub_unit(sub_unit instance);
partial void Updatesub_unit(sub_unit instance);
partial void Insertsub_unit(sub_unit instance);
private void detach_sub_units(sub_unit entity) { this.SendPropertyChanging(); entity.unit = null; }
private void attach_sub_units(sub_unit entity) { this.SendPropertyChanging(); entity.unit = this; }
private void detach_sub_units(sub_unit entity) { this.SendPropertyChanging(); entity.security_level = null; }