Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTasks(Task task)
 {
     base.AddObject("Tasks", task);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Task 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="disabled">Initial value of the Disabled property.</param>
 /// <param name="capacity">Initial value of the Capacity property.</param>
 /// <param name="event_ID">Initial value of the Event_ID property.</param>
 public static Task CreateTask(global::System.Int32 id, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Boolean disabled, global::System.Int32 capacity, global::System.Int32 event_ID)
 {
     Task task = new Task();
     task.ID = id;
     task.StartTime = startTime;
     task.EndTime = endTime;
     task.Disabled = disabled;
     task.Capacity = capacity;
     task.Event_ID = event_ID;
     return task;
 }