Esempio n. 1
0
 public ExampleDataAccess(ISharedDatabase database)
 {
     // get a shared database connection and transaction from the DI Container.
     // This will be the same connection and transaction used by PeachtreeBus.
     _database = database;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="database">A Shared Database connection.</param>
 /// <param name="schemaConfig">Configures which DB Schema to find all the tables in.</param>
 public DapperDataAccess(ISharedDatabase database, IDbSchemaConfiguration schemaConfig)
 {
     _schemaConfig = schemaConfig;
     _database     = database;
 }