/// <summary> /// Deprecated Method for adding a new object to the IngredientTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToIngredientTypes(IngredientType ingredientType) { base.AddObject("IngredientTypes", ingredientType); }
/// <summary> /// Create a new IngredientType object. /// </summary> /// <param name="ingredientTypeId">Initial value of the IngredientTypeId property.</param> /// <param name="ingredientSubTypeId">Initial value of the IngredientSubTypeId property.</param> public static IngredientType CreateIngredientType(global::System.Int32 ingredientTypeId, global::System.Int32 ingredientSubTypeId) { IngredientType ingredientType = new IngredientType(); ingredientType.IngredientTypeId = ingredientTypeId; ingredientType.IngredientSubTypeId = ingredientSubTypeId; return ingredientType; }