Template.CleanArchitecture.CodeFirst
1.0.0
dotnet new install Template.CleanArchitecture.CodeFirst::1.0.0
Template.CleanArchitecture.CodeFirst
this is acleanArchitecture template
Features
- efcore 6 code first db
- swagger versioning web api
- sql temporal table , that used in audit operations on table data
Installation
open visual studio code to run commands
Install template
dotnet new --install Template.CleanArchitecture.CodeFirst::1.0.0
- after install template in your device , you can find template in your visual studio 2022 , and use it.
if you need use template by run commands on visual studio code , run command --help to list avilable choices
dotnet new Api.CodeFirst --help
create new project , with default options (without swagger versioning, or temporal table)
dotnet new Api.CodeFirst -o "yourProjectName"
create new project , with swagger versioning
dotnet new api.codefirst -o "yourProjectName" -E "true"
create new project , with sql temporal tables
dotnet new api.codefirst -o "yourProjectName" -A "true"
create new project , with swagger versioning and sql temporal tables
dotnet new api.codefirst -o "yourProjectName" -E "true" -A "true"
After create your project
follow steps
1- Create db on your local sql server with name EmployeeDB.
2- Set "yourProjectName" as start up project.
3- open Package manager consol on visual studio , and set your default project in Package manager consol droplist with DataLayer project , then Run add-migration command to generate migration file
add-migration firstmigration
4- run update command
update-database
after update command finished , you can find generated tables with initial rows in your db
-
.NETStandard 2.1
- SampleDependency (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,342 | 1/25/2022 |