Пример #1
0
 /// <summary>
 /// Create a new Task object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 public static Task CreateTask(global::System.Guid id, global::System.String description)
 {
     Task task = new Task();
     task.Id = id;
     task.Description = description;
     return task;
 }
Пример #2
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);
 }