Skip to content

d0972058277/AggregateAndValueObjectCompositeIndex

Repository files navigation

Fluent Api - Mapping an index over more than one column across entity types.

  1. 透過 Docker 運行 MySql
docker run -itd --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql:5.7
  1. 調整 ExampleDbContext.OnModelCreating 建立 Account(Aggregate).Username + Email(ValueObject).Value 的複合索引

  2. 使用 dotnet ef tools 進行 migrations

dotnet ef migrations add AddCompositeIndex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages