示例#1
0
        /// <summary>
        /// Configuration builder for values related to Query.
        /// </summary>
        /// <param name="configure">An action to invoke the <see cref="TransactionQueryConfigBuilder"/> to configure query options for transactions.</param>
        /// <returns>The original <see cref="TransactionConfigBuilder"/>.</returns>
        public static TransactionConfigBuilder QueryConfig(this TransactionConfigBuilder config, Action <TransactionQueryConfigBuilder> configure)
        {
            var queryConfigBuilder = TransactionQueryConfigBuilder.Create();

            if (configure != null)
            {
                configure(queryConfigBuilder);
            }

            config.QueryConfig(queryConfigBuilder);
            return(config);
        }
 /// <summary>
 /// Configuration builder for values related to Query.
 /// </summary>
 /// <param name="queryConfigBuilder">A <see cref="TransactionQueryConfigBuilder"/> to configure query options for transactions.</param>
 /// <returns>The original <see cref="TransactionConfigBuilder"/>.</returns>
 public TransactionConfigBuilder QueryConfig(TransactionQueryConfigBuilder queryConfigBuilder)
 {
     _queryConfigBuilder = queryConfigBuilder;
     return(this);
 }