Updated lots of stuff, got multi scrape working, need to test not-nullable chapter novel ids with our current model, now supports sqlite and postgres concurrently (and easy add more), need to get it deployed/do auth
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-07-16 17:17:43 -04:00
parent eab3399268
commit d98324c11e
73 changed files with 1591 additions and 680 deletions

13
DBConnection/Readme.md Normal file
View File

@@ -0,0 +1,13 @@
# DBConnection
## Providers
Currently AppDbContext can support:
* Sqlite (default)
* PostgresSql
The startup project should specify a 'DatabaseProvider' configuration key and provide an appropriate connection string
## Repositories
Repositories added into the DBConnection.Repositories namespace and assignable (implementing) IRepository will be dependency injected.
Repositories extending a non-generic interface that also implements IRepository (or some descendant interface) will be DI'd as an implementation of that interface.
As an example, AuthorRepository implements IAuthorRepository which implements IRepository<Author> which implements IRepository. Therefore, Author will get added as an implementation of IAuthorRepository.