/// <summary> /// Create a new Direction object. /// </summary> /// <param name="directionsId">Initial value of the DirectionsId property.</param> /// <param name="recipeId">Initial value of the RecipeId property.</param> /// <param name="stepNumber">Initial value of the StepNumber property.</param> /// <param name="text">Initial value of the Text property.</param> public static Direction CreateDirection(global::System.Int32 directionsId, global::System.Int32 recipeId, global::System.Int32 stepNumber, global::System.String text) { Direction direction = new Direction(); direction.DirectionsId = directionsId; direction.RecipeId = recipeId; direction.StepNumber = stepNumber; direction.Text = text; return direction; }
/// <summary> /// Deprecated Method for adding a new object to the Directions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDirections(Direction direction) { base.AddObject("Directions", direction); }