MSFramework

A micro service template

MIT License

Stars
6
Committers
6

MSFramework

A micro service template

Add EF migrations

dotnet ef migrations add Init -s src/Ordering.Api \
    -c OrderingContext -p src/Ordering.Infrastructure

Static model

dotnet ef dbcontext optimize -s src/Ordering.Api \
  -c OrderingContext -p src/Ordering.Infrastructure \
  -o CompileModels -n Ordering.Infrastructure.CompileModels

实践说明

  • 建议使用 schema 参数来进行隔离, 不再使用 table prefix 进行隔离

Dapr

dapr run --app-id ordering-api --app-port 5001 --dapr-http-port 5101 --dapr-grpc-port 5102 --config ./dapr/config.yaml --components-path ./dapr/components