Пример #1
0
 /// <summary>
 /// Create a new Conference object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 public static Conference CreateConference(global::System.Int32 id, global::System.String name, global::System.DateTime startDate, global::System.String endDate)
 {
     Conference conference = new Conference();
     conference.Id = id;
     conference.Name = name;
     conference.StartDate = startDate;
     conference.EndDate = endDate;
     return conference;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Agendas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAgendas(Conference conference)
 {
     base.AddObject("Agendas", conference);
 }
 public NotAttendingConferenceException(Attendee attendee, Conference conference)
     : base(attendee.Name + " is not registered for the conference " + conference.Name)
 {
 }
 public SessionNotFoundException(int sessionId, Conference conference)
     : base("No session with id " + sessionId + " found in conference " + conference.Name)
 {
 }
 public SessionNotFoundException(int sessionId, Conference conference) : base("No session with id " + sessionId + " found in conference " + conference.Name)
 {
 }