public void RegisterSpeakerForEvent(Speaker speaker, Event ev)
 {
     EventsSpeaker evs =
         _conferenceware.EventsSpeakers.SingleOrDefault(
             x => x.Speaker == speaker && x.Event == ev);
     if (evs == null)
     {
         evs = new EventsSpeaker { Speaker = speaker, Event = ev };
         _conferenceware.EventsSpeakers.InsertOnSubmit(evs);
     }
 }
Exemplo n.º 2
0
 public void RegisterSpeakerForEvent(Speaker speaker, Event ev)
 {
     var evs = new EventsSpeaker();
     evs.Speaker = speaker;
     evs.Event = ev;
     ev.EventsSpeakers.Insert(0, evs);
     speaker.EventsSpeakers.Insert(0, evs);
 }
		private void detach_EventsSpeakers(EventsSpeaker entity)
		{
			this.SendPropertyChanging();
			entity.Speaker = null;
		}
		private void attach_EventsSpeakers(EventsSpeaker entity)
		{
			this.SendPropertyChanging();
			entity.Speaker = this;
		}
 partial void DeleteEventsSpeaker(EventsSpeaker instance);
 partial void UpdateEventsSpeaker(EventsSpeaker instance);
 partial void InsertEventsSpeaker(EventsSpeaker instance);