# 参数
param (
    [Parameter()]
    [string]
    $Name = $null
)
$location = Get-Location
if ([string]::IsNullOrWhiteSpace($Name)) {
    $Name = [DateTime]::Now.ToString("yyyyMMdd-HHmmss")
}
dotnet build
dotnet ef migrations add $Name -c DefaultDbContext --no-build
