Exemplo n.º 1
0
        /// <summary>
        /// Configure value to include in query
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="query">Value to include in query</param>
        public static ILocalParameter <TDocument> Query <TDocument>(this ILocalParameter <TDocument> parameter, SearchQuery <TDocument> query)
            where TDocument : Document
        {
            parameter.Query = query;

            return(parameter);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Configure plain value to include in query
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="value">Plain value to include in query</param>
        public static ILocalParameter <TDocument> Value <TDocument>(this ILocalParameter <TDocument> parameter, string value)
            where TDocument : Document
        {
            parameter.Value = value;

            return(parameter);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Configure name of parameter added in query
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="name">Name of parameter added in query</param>
        public static ILocalParameter <TDocument> Name <TDocument>(this ILocalParameter <TDocument> parameter, string name)
            where TDocument : Document
        {
            parameter.Name = name;

            return(parameter);
        }