Check out example codes for "but dotnet-ef does not exist.". It will help you in understanding the concepts better.

Code Example 1

dotnet tool install --global dotnet-ef

Learn ReactJs, React Native from akashmittal.com