Usage of the Unit Of Work and repository pattern for a Blazor server project.
+-+-(src)--+- WordsManager: Blazor server-side web application
| |
| +- Wwg.Core: Business/Application Model
| |
| +- Wwg.DirectoryService: External Dictionary Service Wrapper
| |
| +- Wwg.Infrastructure: Data Access Logic
| |
| +- Wwg.Services: Data Access Logic
|
+-(test)-+- Wwg.Core.Test: Wwg.Core Unit Test
|
+- Wwg.DirectoryService.Test: Wwg.DirectoryService Unit Test
I chose SQLite for this project as it is lightweight component and can be easily embedded into a project.
This source code does not include the database file (*.db). It can be done by the following steps:
- Select the Wwg.Infrastructure as the default project.
- Use the command lines below. The argument for Update-Database is the location where the *.db file will be created into.
Add-Migration InitialCreate -Args '--path "D:\SQLite Files\words.db"'
Update-Database -Args '--path "D:\SQLite Files\words.db"'
I do not own the copyright to any dictionary service and content. You need to contact the service provider to use their service to extend the sample project or make your own version.