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; }
/// <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; }