示例#1
0
 /// <summary>
 /// Create a new Event object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="endTime">Initial value of the EndTime property.</param>
 /// <param name="isDefault">Initial value of the IsDefault property.</param>
 /// <param name="isSponsorRegistrationOpen">Initial value of the IsSponsorRegistrationOpen property.</param>
 /// <param name="isSpeakerRegistrationOpen">Initial value of the IsSpeakerRegistrationOpen property.</param>
 /// <param name="isAttendeeRegistrationOpen">Initial value of the IsAttendeeRegistrationOpen property.</param>
 /// <param name="isVolunteerRegistrationOpen">Initial value of the IsVolunteerRegistrationOpen property.</param>
 public static Event CreateEvent(global::System.Int32 id, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Boolean isDefault, global::System.Boolean isSponsorRegistrationOpen, global::System.Boolean isSpeakerRegistrationOpen, global::System.Boolean isAttendeeRegistrationOpen, global::System.Boolean isVolunteerRegistrationOpen)
 {
     Event @event = new Event();
     @event.ID = id;
     @event.StartTime = startTime;
     @event.EndTime = endTime;
     @event.IsDefault = isDefault;
     @event.IsSponsorRegistrationOpen = isSponsorRegistrationOpen;
     @event.IsSpeakerRegistrationOpen = isSpeakerRegistrationOpen;
     @event.IsAttendeeRegistrationOpen = isAttendeeRegistrationOpen;
     @event.IsVolunteerRegistrationOpen = isVolunteerRegistrationOpen;
     return @event;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Events EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEvents(Event @event)
 {
     base.AddObject("Events", @event);
 }