/// <summary>
 /// Create a new Task object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="modified">Initial value of the Modified property.</param>
 /// <param name="enabled">Initial value of the Enabled property.</param>
 /// <param name="startFrom">Initial value of the StartFrom property.</param>
 /// <param name="startTime">Initial value of the StartTime property.</param>
 /// <param name="freqType">Initial value of the FreqType property.</param>
 /// <param name="interval">Initial value of the Interval property.</param>
 /// <param name="domFilter">Initial value of the DomFilter property.</param>
 /// <param name="womFilter">Initial value of the WomFilter property.</param>
 /// <param name="dowFilter">Initial value of the DowFilter property.</param>
 /// <param name="moyFilter">Initial value of the MoyFilter property.</param>
 /// <param name="sequenceId">Initial value of the SequenceId property.</param>
 /// <param name="targetKind">Initial value of the TargetKind property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 /// <param name="timeStamp">Initial value of the TimeStamp property.</param>
 /// <param name="isInternal">Initial value of the IsInternal property.</param>
 public static CrmTask CreateTask(global::System.Int64 id, global::System.String name, global::System.DateTime created, global::System.DateTime modified, global::System.Boolean enabled, global::System.DateTime startFrom, global::System.Int64 startTime, global::System.Int16 freqType, global::System.Int32 interval, global::System.Int32 domFilter, global::System.Int32 womFilter, global::System.Int32 dowFilter, global::System.Int32 moyFilter, global::System.Int64 sequenceId, global::System.Int16 targetKind, global::System.Boolean deleted, global::System.Byte[] timeStamp, global::System.Boolean isInternal)
 {
     CrmTask task = new CrmTask();
     task.Id = id;
     task.Name = name;
     task.Created = created;
     task.Modified = modified;
     task.Enabled = enabled;
     task.StartFrom = startFrom;
     task.StartTime = startTime;
     task.FreqType = freqType;
     task.Interval = interval;
     task.DomFilter = domFilter;
     task.WomFilter = womFilter;
     task.DowFilter = dowFilter;
     task.MoyFilter = moyFilter;
     task.SequenceId = sequenceId;
     task.TargetKind = targetKind;
     task.Deleted = deleted;
     task.TimeStamp = timeStamp;
     task.IsInternal = isInternal;
     return task;
 }
 /// <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(CrmTask task)
 {
     base.AddObject("Tasks", task);
 }