Ejemplo n.º 1
0
        /*public void AddParameter(string name,ParameterValueKind valueKind){
         *      ParameterFields.Add(new ParameterFieldDefinition(name,valueKind));
         * }*/

        ///<summary>Adds a parameterField which will be used in the query to represent user-entered data.</summary>
        ///<param name="myName">The unique formula name of the parameter.</param>
        ///<param name="myValueType">The data type that this parameter stores.</param>
        ///<param name="myDefaultValue">The default value of the parameter</param>
        ///<param name="myPromptingText">The text to prompt the user with.</param>
        ///<param name="mySnippet">The SQL snippet that this parameter represents.</param>
        public void AddParameter(string myName, FieldValueType myValueType
                                 , object myDefaultValue, string myPromptingText, string mySnippet)
        {
            parameterFields.Add(new ParameterField(myName, myValueType, myDefaultValue, myPromptingText, mySnippet));
        }