Example #1
0
 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();
 }
Example #2
0
 partial void Deletesub_unit(sub_unit instance);
Example #3
0
 partial void Updatesub_unit(sub_unit instance);
Example #4
0
 partial void Insertsub_unit(sub_unit instance);
Example #5
0
	private void detach_sub_units(sub_unit entity)
	{
		this.SendPropertyChanging();
		entity.unit = null;
	}
Example #6
0
	private void attach_sub_units(sub_unit entity)
	{
		this.SendPropertyChanging();
		entity.unit = this;
	}
Example #7
0
	private void detach_sub_units(sub_unit entity)
	{
		this.SendPropertyChanging();
		entity.security_level = null;
	}