public void RegisterVolunteerForVolunteerTimeSlot(Volunteer v, VolunteerTimeSlot vts) { if (_conferenceware.VolunteersVolunteerTimeSlots.SingleOrDefault(x => x.Volunteer == v && x. VolunteerTimeSlot == vts) == null) { var vvts = new VolunteersVolunteerTimeSlot { Volunteer = v, VolunteerTimeSlot = vts, comment = "" }; _conferenceware.VolunteersVolunteerTimeSlots.InsertOnSubmit(vvts); } }
partial void DeleteVolunteersVolunteerTimeSlot(VolunteersVolunteerTimeSlot instance);
partial void UpdateVolunteersVolunteerTimeSlot(VolunteersVolunteerTimeSlot instance);
partial void InsertVolunteersVolunteerTimeSlot(VolunteersVolunteerTimeSlot instance);
private void detach_VolunteersVolunteerTimeSlots(VolunteersVolunteerTimeSlot entity) { this.SendPropertyChanging(); entity.Volunteer = null; }
private void attach_VolunteersVolunteerTimeSlots(VolunteersVolunteerTimeSlot entity) { this.SendPropertyChanging(); entity.VolunteerTimeSlot = this; }