示例#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);
 }
示例#2
0
 /// <summary>
 /// Create a new Task object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="isComplete">Initial value of the IsComplete property.</param>
 public static Task CreateTask(global::System.Int32 id, global::System.Boolean isComplete)
 {
     Task task = new Task();
     task.ID = id;
     task.IsComplete = isComplete;
     return task;
 }