Get started quickly with developing applications in C# on macOS with SQL Server
About this sample
Before you begin
Run this sample
Sample details
Disclaimers
Related links
- Applies to: SQL Server 2016 (or higher)
- Workload:
- CRUD with .NET Core
- CRUD with Entity Framework Core
- Performance improvements with Columnstore
- Programming Language: C#
- Authors: ajlam
To run this sample, you need the following prerequisites.
Software prerequisites:
- SQL Server 2016 (or higher)
- .NET Core 2.0
- Entity Framework Core 2.0
- A text editor
-
Select the specific tutorial you want to run through.
-
From your favorite text editor, open the Program.cs file corresponding to the tutorial you wish to run through. Update the connection string username and password with your own.
-
From your terminal, change directories to the tutorial folder (ex. SqlServerSample) you're running through. Restore the .NET Core dependencies by performing the following command:
dotnet restore -
Run the program by performing the following command:
dotnet run -
Repeat the above steps for any of the other tutorials provided.
Please visit the C# on macOS tutorial to run through the sample in full with more detail.
The scripts and this guide are provided as samples. They are not part of any Azure service and are not covered by any SLA or other Azure-related agreements. They are provided as-is with no warranties express or implied. Microsoft takes no responsibility for the use of the scripts or the accuracy of this document. Familiarize yourself with the scripts before using them.
For more information, see these articles:
- To see more getting started tutorials, visit our tutorials page