Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ToDoTasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToToDoTasks(ToDoTask toDoTask)
 {
     base.AddObject("ToDoTasks", toDoTask);
 }
Пример #2
0
 /// <summary>
 /// Create a new ToDoTask object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="projectId">Initial value of the ProjectId property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 /// <param name="due">Initial value of the Due property.</param>
 /// <param name="color">Initial value of the Color property.</param>
 /// <param name="email">Initial value of the Email property.</param>
 /// <param name="toDoProjectId">Initial value of the ToDoProjectId property.</param>
 public static ToDoTask CreateToDoTask(global::System.Int32 id, global::System.Int32 projectId, global::System.String content, global::System.DateTimeOffset due, global::System.Byte color, global::System.Boolean email, global::System.Int32 toDoProjectId)
 {
     ToDoTask toDoTask = new ToDoTask();
     toDoTask.Id = id;
     toDoTask.ProjectId = projectId;
     toDoTask.Content = content;
     toDoTask.Due = due;
     toDoTask.Color = color;
     toDoTask.Email = email;
     toDoTask.ToDoProjectId = toDoProjectId;
     return toDoTask;
 }