The EF Core tools version '3.1.8' is older than that of the runtime '3.1.9'. Update the tools for code example
Example: The EF Core tools version '3.1.0' is older than that of the runtime '3.1.3'
Use command line, Cmd or PowerShell for specific version:
dotnet tool update --global dotnet-ef --version 3.1.0
or
dotnet tool update --global dotnet-ef