Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionContext"/>
 /// using the specified <see cref="IDbConnection"/> object.
 /// </summary>
 /// <param name="connection"></param>
 public TransactionContext(IDbConnection connection) {
   if (connection == null) {
     throw new ArgumentNullException("connection");
   }
   connection_ = connection;
   commands_ = new Queue<EnlistedCommand>();
   logger_ = MustLogger.ForCurrentProcess;
 }
Esempio n. 2
0
 static MustLogger()
 {
     current_process_logger_ = new MustLogger(new NOPLogger());
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetIfGreaterThanQuery"/>
 /// using the given <param ref="sql_connection_provider" />
 /// </summary>
 /// <param name="sql_connection_provider">
 /// A <see cref="SqlCeConnectionProvider"/> object that can be used to
 /// create connections to the data provider.
 /// </param>
 public SetIfLessThanQuery(SqlCeConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
   SupressTransactions = true;
 }
Esempio n. 4
0
 public TableExistsQuery(SqlCeConnectionProvider sql_connection_provider)
 {
     sql_connection_provider_ = sql_connection_provider;
       logger_ = MustLogger.ForCurrentProcess;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionContext"/>
 /// using the specified <see cref="IDbConnection"/> object.
 /// </summary>
 /// <param name="connection"></param>
 protected TransactionContext(IDbConnection connection) {
   connection_ = connection;
   commands_ = new List<IDbCommand>();
   logger_ = MustLogger.ForCurrentProcess;
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NextHiQuery"/>
 /// using the given <param ref="sql_connection_provider" />
 /// </summary>
 /// <param name="sql_connection_provider">
 /// A <see cref="SqlConnectionProvider"/> object that can be used to
 /// create connections to the data provider.
 /// </param>
 public NextHiQuery(SqlConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
   mapper_ = CreateMapper();
 }
Esempio n. 7
0
 public AddStateQuery(SqlConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
   SupressTransactions = true;
 }
Esempio n. 8
0
 static MustLogger() {
   current_process_logger_ = new MustLogger(new NOPLogger());
 }
Esempio n. 9
0
 static MustLogger()
 {
     ForCurrentProcess = new MustLogger(new NOPLogger());
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SetStateCommand"/>
 /// using the given <param ref="sql_connection_provider" />
 /// </summary>
 /// <param name="sql_connection_provider">
 /// A <see cref="SqlConnectionProvider"/> object that can be used to
 /// create connections to the data provider.
 /// </param>
 public SetStateCommand(SqlConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
 }
Esempio n. 11
0
 public CreateTableQuery(SqlCeConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
   table_exists_ = new TableExistsQuery(sql_connection_provider);
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateByNameQuery"/>
 /// using the given <param ref="sql_connection_provider" />
 /// </summary>
 /// <param name="sql_connection_provider">
 /// A <see cref="SqlConnectionProvider"/> object that can be used to
 /// create connections to the data provider.
 /// </param>
 public StateByNameQuery(SqlConnectionProvider sql_connection_provider) {
   sql_connection_provider_ = sql_connection_provider;
   logger_ = MustLogger.ForCurrentProcess;
 }