Skip to content

EugeneKim/BlazorRepositoryPattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status License: GPL v3

Blazor Repository Pattern

Usage of the Unit Of Work and repository pattern for a Blazor server project.

Projects Structure

+-+-(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

Build Environment

Database

I chose SQLite for this project as it is lightweight component and can be easily embedded into a project.

Create Database

This source code does not include the database file (*.db). It can be done by the following steps:

  1. Select the Wwg.Infrastructure as the default project.
  2. 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"'

Copyright

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.

References

About

Example of Unit Of Work and Repository Pattern for Blazor Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published