CapRaffle.PopulateDatabase.Event.CreateEvent C# (CSharp) Method

CreateEvent() public static method

Create a new Event object.
public static CreateEvent ( global eventId, global name, global created, global creator, global availableSpots, global deadLine, global categoryId, global startTime, global isAutomaticDrawing ) : Event
eventId global Initial value of the EventId property.
name global Initial value of the Name property.
created global Initial value of the Created property.
creator global Initial value of the Creator property.
availableSpots global Initial value of the AvailableSpots property.
deadLine global Initial value of the DeadLine property.
categoryId global Initial value of the CategoryId property.
startTime global Initial value of the StartTime property.
isAutomaticDrawing global Initial value of the IsAutomaticDrawing property.
return Event
        public static Event CreateEvent(global::System.Int32 eventId, global::System.String name, global::System.DateTime created, global::System.String creator, global::System.Int32 availableSpots, global::System.DateTime deadLine, global::System.Int32 categoryId, global::System.DateTime startTime, global::System.Boolean isAutomaticDrawing)
        {
            Event @event = new Event();
            @event.EventId = eventId;
            @event.Name = name;
            @event.Created = created;
            @event.Creator = creator;
            @event.AvailableSpots = availableSpots;
            @event.DeadLine = deadLine;
            @event.CategoryId = categoryId;
            @event.StartTime = startTime;
            @event.IsAutomaticDrawing = isAutomaticDrawing;
            return @event;
        }