/// <summary>
 /// Deprecated Method for adding a new object to the Goals EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToGoals(Goal goal)
 {
     base.AddObject("Goals", goal);
 }
 /// <summary>
 /// Create a new Goal object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="dateBegin">Initial value of the DateBegin property.</param>
 /// <param name="dateEnd">Initial value of the DateEnd property.</param>
 public static Goal CreateGoal(global::System.Int64 id, global::System.DateTime dateBegin, global::System.DateTime dateEnd)
 {
     Goal goal = new Goal();
     goal.Id = id;
     goal.DateBegin = dateBegin;
     goal.DateEnd = dateEnd;
     return goal;
 }