/// <summary> /// Create a new Option object. /// </summary> /// <param name="optionID">Initial value of the OptionID property.</param> /// <param name="optionKey">Initial value of the OptionKey property.</param> /// <param name="optionValue">Initial value of the OptionValue property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="updatedBy">Initial value of the UpdatedBy property.</param> /// <param name="updatedDate">Initial value of the UpdatedDate property.</param> public static Option CreateOption(global::System.Int32 optionID, global::System.String optionKey, global::System.String optionValue, global::System.Int32 createdBy, global::System.DateTime createdDate, global::System.Int32 updatedBy, global::System.DateTime updatedDate) { Option option = new Option(); option.OptionID = optionID; option.OptionKey = optionKey; option.OptionValue = optionValue; option.CreatedBy = createdBy; option.CreatedDate = createdDate; option.UpdatedBy = updatedBy; option.UpdatedDate = updatedDate; return option; }
/// <summary> /// Deprecated Method for adding a new object to the Options EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOptions(Option option) { base.AddObject("Options", option); }