/// <summary> /// Deprecated Method for adding a new object to the FoodEntryTypeValues EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFoodEntryTypeValues(FoodEntryTypeValue foodEntryTypeValue) { base.AddObject("FoodEntryTypeValues", foodEntryTypeValue); }
/// <summary> /// Create a new FoodEntryTypeValue object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="foodEntryTypeId">Initial value of the FoodEntryTypeId property.</param> /// <param name="label">Initial value of the Label property.</param> /// <param name="valueType">Initial value of the ValueType property.</param> /// <param name="isRequired">Initial value of the IsRequired property.</param> public static FoodEntryTypeValue CreateFoodEntryTypeValue(global::System.Int32 id, global::System.Int32 foodEntryTypeId, global::System.String label, global::System.String valueType, global::System.Boolean isRequired) { FoodEntryTypeValue foodEntryTypeValue = new FoodEntryTypeValue(); foodEntryTypeValue.Id = id; foodEntryTypeValue.FoodEntryTypeId = foodEntryTypeId; foodEntryTypeValue.Label = label; foodEntryTypeValue.ValueType = valueType; foodEntryTypeValue.IsRequired = isRequired; return foodEntryTypeValue; }