/// <summary>
 /// Create a new TaskByBudget object.
 /// </summary>
 /// <param name="company">Initial value of the Company property.</param>
 /// <param name="idBudget">Initial value of the IdBudget property.</param>
 /// <param name="idTask">Initial value of the IdTask property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static TaskByBudget CreateTaskByBudget(global::System.String company, global::System.Double idBudget, global::System.Int64 idTask, global::System.String name)
 {
     TaskByBudget taskByBudget = new TaskByBudget();
     taskByBudget.Company = company;
     taskByBudget.IdBudget = idBudget;
     taskByBudget.IdTask = idTask;
     taskByBudget.Name = name;
     return taskByBudget;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the TaskByBudgets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTaskByBudgets(TaskByBudget taskByBudget)
 {
     base.AddObject("TaskByBudgets", taskByBudget);
 }
Exemple #3
0
        private void GetBudgetTask(IEnumerable<TaskDto> taskCollection, ICollection<TaskByBudget> detail)
        {
            detail.Clear();

            foreach (TaskDto tmpTask in taskCollection)
            {
                var tmpTaskByBudget = new TaskByBudget
                {
                    IdTask = tmpTask.Id,
                    Name = tmpTask.Name,
                    PRE_PRESUPUESTOS = null,
                    PRE_PRESUPUESTOSReference = null
                };
                detail.Add(tmpTaskByBudget);
            }
        }