Web API Solution demonstrates mutliteantcy architecture, using Entity Framework, UnitOfWork, Repository patterns
- Clone repository
- Apply Entity Framework migration. Run:
Update-DataBase
.
- (For Multitenancy testing) Change
DefaultConnection
to;Database=DeviceDb-ten2;
inappsettings.json
. Run EF migrationUpdate-DataBase
. It will create another database. - Tenants Dabase configuration stored in DataBaseManager (
tenantConfigurationDictionary
).
- Fill up valid database connection string configuration option in
appsettings.json
. - Run UnitTests.
- Build / Run.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
All changes can be easily found in RELEASENOTES
This project is licensed under the MIT License