示例#1
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="connectionFactory">
 /// A connection factory that returns a MySQL DB connection.
 /// </param>
 /// <param name="parameterMapper">The parameter mapper.</param>
 /// <param name="tracer">The OpenTracing tracer instance to use. If this value is null the global tracer will
 /// be used instead.</param>
 public MySqlDatabase(MySqlConnectionFactory connectionFactory, IParameterMapper?parameterMapper, ITracer?tracer)
     : base(new SqlCommandManager(connectionFactory, parameterMapper ?? new DefaultParameterMapper(), tracer), new MySqlDialect())
 {
 }
示例#2
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="connectionFactory">
 /// A connection factory that returns a MySQL DB connection.
 /// </param>
 /// <param name="parameterMapper">The parameter mapper.</param>
 public MySqlDatabase(MySqlConnectionFactory connectionFactory, IParameterMapper parameterMapper)
     : this(connectionFactory, parameterMapper, null)
 {
 }
示例#3
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="connectionFactory">
 /// A connection factory that returns a MySQL DB connection.
 /// </param>
 /// <param name="tracer">
 /// The OpenTracing tracer instance to use. If this value is null the global tracer will
 /// be used instead.
 /// </param>
 public MySqlDatabase(MySqlConnectionFactory connectionFactory, ITracer tracer)
     : this(connectionFactory, null, tracer)
 {
 }
示例#4
0
 /// <summary>
 /// Creates command parameters for a MySQL database reference.
 /// </summary>
 /// <param name="connectionFactory">
 /// A connection factory that returns a MySQL DB connection.
 /// </param>
 public MySqlDatabase(MySqlConnectionFactory connectionFactory)
     : this(connectionFactory, null, null)
 {
 }