works fine on my m1 using dotnet 6 and azure sqlserver edge in a docker container.
dotnet ef dbcontext scaffold "Server=localhost;Database=pubs;user=sa;Password=xxxxx;" "Microsoft.EntityFrameworkCore.SqlServer" -o Model
note: I use the z shell
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I tried using Scaffold Dbcontext, it show there is no such a word as " scaffold dbcontext". Then I uninstalled Net 6 and installed Arm64 version on m y M1 silicon. Guess what ? It didn't work because when checked botnet version, it didn't show me the Net 6 and I installed intel x64 version again which one comes with Visual Studio for Mac 2022 Prev. So Is anybody know that when arm64 Net6 will support %100 ? Because we can't use "Scaffold Dbcontext" to migration our Datas to project.
works fine on my m1 using dotnet 6 and azure sqlserver edge in a docker container.
dotnet ef dbcontext scaffold "Server=localhost;Database=pubs;user=sa;Password=xxxxx;" "Microsoft.EntityFrameworkCore.SqlServer" -o Model
note: I use the z shell
So did you install the EF cli tools?
dotnet tool install --global dotnet-ef
See
Yes I already installed but still not working. Also I installed nuggets ( ef core sql - design - tools ).
Here is my Scaffold DbContext = Scaffold-DbContext "Server=sserveraddress;Database=dbname;User=username;Password=password;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Data -Context MicroServiceDBContext
Could u try it on ur computer and let me know if its working or not on ur side. And dont forget that I have this problem only with M1 cpu not intel.
Thank you so much. It really worked for me..