예제 #1
0
 public TaskViewModel(Tasks task)
 {
     this.TaskId = task.TaskId;
     this.TaskName = task.TaskName;
     this.Description = task.Description;
     this.isActive = task.IsActive;
     this.Status = task.Status;
     this.Estimation = task.Estimation;
     if(task.StartTime != null)
         this.start = (DateTime) task.StartTime;
     if(task.EndTime != null)
         this.end = (DateTime)task.EndTime;
 }
 /// <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(Tasks tasks)
 {
     base.AddObject("Tasks", tasks);
 }
 /// <summary>
 /// Create a new Tasks object.
 /// </summary>
 /// <param name="taskId">Initial value of the TaskId property.</param>
 /// <param name="taskName">Initial value of the TaskName property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="estimation">Initial value of the Estimation property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static Tasks CreateTasks(global::System.Guid taskId, global::System.String taskName, global::System.String description, global::System.Int32 estimation, global::System.String status, global::System.Boolean isActive)
 {
     Tasks tasks = new Tasks();
     tasks.TaskId = taskId;
     tasks.TaskName = taskName;
     tasks.Description = description;
     tasks.Estimation = estimation;
     tasks.Status = status;
     tasks.IsActive = isActive;
     return tasks;
 }