MSFramework is a lightweight DDD framework


Keywords
MSFramework
License
MIT
Install
Install-Package MSFramework.EventBus.RabbitMQ -Version 0.14.7-beta9

Documentation

MSFramework

A micro service template

Build Status

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