问题
I am a beginner trying to get a Blazor C# App to connect to the SQL database I created on Azure.
I am having trouble trying to figure out how to connect these two on MacOS Visual Studio. I have found a few forums describing how it is done in windows but I can't seem to figure it out on mac. Any help would be appreciated.
回答1:
You can read this article, and follow the step to create a demo or download EndToEnd.sln to find out how to connect db on MAC OSX.
I have try it and success. My macOS Catalina version 10.15.5. There are some different in windows and mac by using visual studio. So I suggest you need to mirgration db first in windows. Then you can paste your db connections in your download project. Then you can see the website run successfully. You can do curd operations in this site. Good Luck !
If u need further help, pls let me know.
来源:https://stackoverflow.com/questions/62203548/how-to-connect-blazor-c-sharp-app-to-azure-sql-database-macos