1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00
Files
sql-server-samples/samples/tutorials/c#/RHEL

Get started with SQL Server and C# on RHEL

Get started quickly with developing applications in C# on RHEL with SQL Server

Contents

About this sample
Before you begin
Run this sample
Sample details
Disclaimers
Related links

About this sample

  • Applies to: SQL Server 2016 (or higher)
  • Workload:
    • CRUD with .NET Core
    • CRUD with EF Core
    • Performance improvements with Columnstore
  • Programming Language: C#
  • Authors: ajlam

Before you begin

To run this sample, you need the following prerequisites.

Software prerequisites:

  1. SQL Server 2016 (or higher)
  2. .NET Core
  3. EF Core
  4. A text editor

Run this sample

  1. From your favorite text editor, open the Program.cs file and update the connection string username and password with your own.

  2. From your terminal, restore the .NET Core dependencies by performing the following command:

    dotnet restore
    
  3. Run the program by performing the following command:

    dotnet run
    
  4. Repeat the above steps for any of the three samples provided.

Sample details

Please visit the C# on RHEL tutorial to run through the sample in full with more detail.

Disclaimers

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: