{"id":50954,"date":"2025-03-15T10:53:35","date_gmt":"2025-03-15T10:53:35","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=50954"},"modified":"2026-02-17T13:16:36","modified_gmt":"2026-02-17T13:16:36","slug":"integrate-dot-net-core-with-mssql-on-linux","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux","title":{"rendered":"How to integrate .Net Core with MSSQL Server in Linux System?"},"content":{"rendered":"<h2 class=\"ack-h2\">How to integrate .Net Core with MSSQL Server in Linux System?<\/h2>\n<p>Setting up .NET Core with SQL Server on Linux helps developers build apps that work across different platforms with a strong database. This setup includes installing SQL Server, setting up .NET Core dependencies, and configuring the database connection using Entity Framework Core or ADO.NET.<\/p>\n<p>With the right setup, your .NET Core app can easily connect to SQL Server while taking advantage of Linux\u2019s speed and flexibility.<\/p>\n<h2 class=\"ack-h2\">Requirements Before Installation<\/h2>\n<p>&#8211; .NET Core SDK and SQL Server must be installed on Linux.<\/p>\n<p>&#8211; Root access to the Linux system is required.<\/p>\n<p>Here, we will create an MVC Employee Management System and integrate it with the MSSQL Server.<\/p>\n<h3 class=\"ack-h3\">Step 1: Create an MVC Project<\/h3>\n<p>Open your terminal and run this command to create a new MVC project named EmployeeManagement:<\/p>\n<pre><code class=\"language-javascript\"><b>dotnet new mvc -o EmployeeManagement<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/01.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50955 size-full\" title=\"Create a new MVC project\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/01.png\" alt=\"Create a new MVC project\" width=\"562\" height=\"351\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/01.png 562w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/01-300x187.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><\/p>\n<p>Go to the newly created project folder:<\/p>\n<pre><code class=\"language-javascript\"><b>cd EmployeeManagement<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/02.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50956 size-full\" title=\"Created project folder\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/02.png\" alt=\"Created project folder\" width=\"563\" height=\"102\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/02.png 563w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/02-300x54.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 2: Install Required Entity Framework Core Packages<\/h3>\n<p>Entity Framework Core lets your .NET app interact easily with the MSSQL Server. Run these commands to install the needed packages:<\/p>\n<pre><code class=\"language-javascript\"><b>dotnet add package Microsoft.EntityFrameworkCore<\/b><\/code><\/pre>\n<pre><code class=\"language-javascript\"><b>dotnet add package Microsoft.EntityFrameworkCore.SqlServer<\/b><\/code><\/pre>\n<pre><code class=\"language-javascript\"><b>dotnet add package Microsoft.EntityFrameworkCore.Design<\/b><\/code><\/pre>\n<pre><code class=\"language-javascript\"><b>dotnet add package Microsoft.EntityFrameworkCore.Tools<\/b><\/code><\/pre>\n<h3 class=\"ack-h3\">Step 3: Create a Database<\/h3>\n<p>Log into your SQL Server using this command (replace &#8216;YourPassword&#8217; with your actual password):<\/p>\n<pre><code class=\"language-javascript\"><b>sqlcmd -S localhost -U SA -P 'YourPassword'<\/b><\/code><\/pre>\n<p>Create a new database named EmployeeDB:<\/p>\n<pre><code class=\"language-javascript\"><b>CREATE DATABASE EmployeeDB;<\/b>\r\n<b>GO<\/b><\/code><\/pre>\n<p>Check if the database is created:<\/p>\n<pre><code class=\"language-javascript\"><b>SELECT Name FROM sys.databases;<\/b>\r\n<b>GO<\/b><\/code><\/pre>\n<p>Exit SQLCMD:<\/p>\n<pre><code class=\"language-javascript\"><b>EXIT<\/b><\/code><\/pre>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/03.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50957 size-full\" title=\"Log into your SQL Server\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/03.png\" alt=\"Log into your SQL Server\" width=\"561\" height=\"492\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/03.png 561w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/03-300x263.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 4: Install EF Core Tool Globally<\/h3>\n<p>The EF Core Tool helps manage database migrations, create models, and update database schemas. Installing it globally means you can use EF commands in any .NET Core project without reinstalling them each time.<\/p>\n<p><b>Install the EF Core Tool<\/b><\/p>\n<p>Run this command in the terminal:<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50958 size-full\" title=\"Install the EF Core Tool\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/04.png\" alt=\"Install the EF Core Tool\" width=\"564\" height=\"212\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/04.png 564w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/04-300x113.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p><b>Update the System Path<\/b><\/p>\n<p>Run these commands to make sure the tool works everywhere:<\/p>\n<pre><code class=\"language-javascript\"><b>export PATH=\"$HOME\/.dotnet\/tools:$PATH\"<\/b>\r\n<b>echo 'export PATH=\"$HOME\/.dotnet\/tools:$PATH\"' &gt;&gt; ~\/.bashrc<\/b>\r\n<b>source ~\/.bashrc<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50959 size-full\" title=\"Update the System Path\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/05.png\" alt=\"Update the System Path\" width=\"560\" height=\"212\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/05.png 560w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/05-300x114.png 300w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p><b>Check the Installation<\/b><\/p>\n<p>Verify that EF Core is installed by checking its version:<\/p>\n<pre><code class=\"language-javascript\"><b>dotnet ef --version<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50960 size-full\" title=\"Check the Installation\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/06.png\" alt=\"Check the Installation\" width=\"559\" height=\"197\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/06.png 559w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/06-300x106.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p>If installed correctly, it will show the EF Core version.<\/p>\n<h3 class=\"ack-h3\">Step 5: Add the Database Connection in appsettings.json<\/h3>\n<p>The connection string in appsettings.json helps .NET Core connect to the SQL Server database. Storing it here makes it easy to change settings without modifying the code. It also supports different environments like development and production.<\/p>\n<p><b>Add the Connection String<\/b><\/p>\n<p>Open the appsettings.json file using this command:<\/p>\n<pre><code class=\"language-javascript\"><b>nano appsettings.json<\/b><\/code><\/pre>\n<p>Then, add the following code:<\/p>\n<pre><code class=\"language-javascript\"><b>{<\/b>\r\n<b>\u00a0\u00a0\"Logging\": {<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\"LogLevel\": {<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"Default\": \"Information\",<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"Microsoft.AspNetCore\": \"Warning\"<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0}<\/b>\r\n<b>\u00a0\u00a0},<\/b>\r\n<b>\u00a0\u00a0\"AllowedHosts\": \"*\",<\/b>\r\n<b>\u00a0\u00a0\"ConnectionStrings\": {<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\"DefaultConnection\": \"Server=localhost;Database=EmployeeDB;User Id=sa;Password=YourPassword;TrustServerCertificate=True\"<\/b>\r\n<b>\u00a0\u00a0}<\/b>\r\n<b>}<\/b><\/code><\/pre>\n<p>-&gt; Replace YourPassword with your actual SQL Server SA password.<\/p>\n<p>-&gt; If SQL Server is on another server, replace localhost with the server&#8217;s IP address.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50961 size-full\" title=\"Replace localhost\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/07.png\" alt=\"Replace localhost\" width=\"568\" height=\"326\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/07.png 568w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/07-300x172.png 300w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 6: Create Database Context<\/h3>\n<p>The DbContext in Entity Framework Core (EF Core) is like a bridge between your .NET Core application and the SQL database. It helps manage database connections, transactions, and queries using LINQ (instead of writing SQL manually).<\/p>\n<p>It also:<\/p>\n<p>Tracks changes in data<\/p>\n<p>Supports migrations (database updates)<\/p>\n<p>Helps with Create, Read, Update, Delete (CRUD) operations<\/p>\n<div class=\"main-tooltip-btn\">\n<a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/application\/dot-net-core-hosting\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">.Net Core Hosting <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a>\n<\/div>\n<h4 class=\"ack-h4\">Create the EmployeeContext.cs File<\/h4>\n<p>Make sure the file <b>EmployeeContext.cs<\/b> is inside:<\/p>\n<p>EmployeeManagement\/Data\/<\/p>\n<p>If the file does not exist, create it and add the following code:<\/p>\n<pre><code class=\"language-javascript\"><b>using Microsoft.EntityFrameworkCore;<\/b>\r\n<b>using EmployeeManagement.Models;<\/b>\r\n<b>namespace EmployeeManagement.Data<\/b>\r\n<b>{<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0public class EmployeeContext : DbContext<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0{<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public EmployeeContext(DbContextOptions&lt;EmployeeContext&gt; options) : base(options) { }<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public DbSet&lt;Employee&gt; Employees { get; set; }<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0protected override void OnModelCreating(ModelBuilder modelBuilder)<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0modelBuilder.Entity&lt;Employee&gt;()<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0.Property(e =&gt; e.Salary)<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0.HasPrecision(18, 2);\u00a0 \/\/ \u2705 Sets precision and scale for Salary<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0}<\/b>\r\n<b>}<\/b><\/code><\/pre>\n<h4><strong>What does this do?<\/strong><\/h4>\n<ul class=\"ack-ul\">\n<li>Defines a <b>DbSet&lt;Employee<\/b>&gt;, which represents the Employees table in the database.<\/li>\n<li>Ensures the Salary field has a decimal precision of 18,2 (18 digits, 2 decimal places).<\/li>\n<\/ul>\n<p>If EmployeeContext.cs is missing, create it inside EmployeeManagement\/Data\/.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50962 size-full\" title=\"Create Database Context\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/08.png\" alt=\"Create Database Context\" width=\"564\" height=\"413\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/08.png 564w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/08-300x220.png 300w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p>If the file is missing, create it inside EmployeeManagement\/Data\/.<\/p>\n<h3 class=\"ack-h3\">Step 7: Add Database Context in Program.cs<\/h3>\n<p>To use <b>Entity Framework Core (EF Core)<\/b> in your .NET Core application, you need to <b>register the database context<\/b> in <b>Program.cs<\/b>. This allows your application to connect to the <b>SQL Server database<\/b> and manage data efficiently.<\/p>\n<h4 class=\"ack-h4\">Why is this important?<\/h4>\n<p><b>Enables database access<\/b> for controllers and services<br \/>\n<b>Manages database connections<\/b> automatically<br \/>\n<b>Supports scalability<\/b> by controlling how database connections are handled<\/p>\n<h4 class=\"ack-h4\">How to Add DbContext in Program.cs?<\/h4>\n<p>Open <b>Program.cs<\/b> and add the following code:<\/p>\n<pre><code class=\"language-javascript\"><b>builder.Services.AddDbContext&lt;AppDbContext&gt;(options =&gt;<\/b>\r\n<b>options.UseSqlServer(connectionString));<\/b><\/code><\/pre>\n<p>This step is <b>necessary<\/b> for EF Core to work with your database. Without it, your application <b>cannot<\/b> interact with the SQL Server database.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50963 size-full\" title=\"Add Database Context in Program.cs\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/09.png\" alt=\"Add Database Context in Program.cs\" width=\"561\" height=\"596\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/09.png 561w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/09-282x300.png 282w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 8: Create the Employee Model<\/h3>\n<p>In .NET Core, a model is a C# class that represents a database table. It allows you to easily add, update, delete, and retrieve data using Entity Framework Core (EF Core). Instead of writing complex SQL queries, you can use LINQ to interact with the database.<\/p>\n<h4 class=\"ack-h4\">Why is this important?<\/h4>\n<ul class=\"ack-ul\">\n<li>Maps data between the application and database<\/li>\n<li>Ensures data validation and integrity<\/li>\n<li>Supports migrations and database relationships<\/li>\n<\/ul>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<h4 class=\"ack-h4\">How to Create the Employee Model?<\/h4>\n<p>Inside the Models\/ folder, create or update the Employee.cs file with the following code:<\/p>\n<pre><code class=\"language-javascript\"><b>namespace EmployeeManagement.Models<\/b>\r\n<b>{<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0public class Employee<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0{<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public int Id { get; set; }<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public string Name { get; set; } = string.Empty;<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public string Position { get; set; } = string.Empty;<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0public decimal Salary { get; set; }<\/b>\r\n<b>\u00a0\u00a0\u00a0\u00a0}<\/b>\r\n<b>}<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50964 size-full\" title=\"Create the Employee Model\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/10.png\" alt=\"Create the Employee Model\" width=\"560\" height=\"362\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/10.png 560w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/10-300x194.png 300w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 9: Apply Migrations and Update the Database<\/h3>\n<p>Migrations help keep the database structure in sync with your application&#8217;s data model. Instead of writing SQL scripts manually, Entity Framework Core (EF Core) tracks changes and applies them automatically.<\/p>\n<h4 class=\"ack-h4\">Run the following commands to update the database:<\/h4>\n<pre><code class=\"language-javascript\"><b>dotnet ef migrations add UpdateSalaryPrecision<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50965 size-full\" title=\"Apply Migrations and Update the Database\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/11.png\" alt=\"Apply Migrations and Update the Database\" width=\"555\" height=\"190\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/11.png 555w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/11-300x103.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/a><\/p>\n<pre><code class=\"language-javascript\"><b>dotnet ef database update<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50966 size-full\" title=\"Apply Migrations and Update the Database\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/12.png\" alt=\"Apply Migrations and Update the Database\" width=\"557\" height=\"525\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/12.png 557w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/12-300x283.png 300w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/><\/a><\/p>\n<p>If the commands run successfully, the Employees table will be created inside EmployeeDB.<\/p>\n<h3 class=\"ack-h3\">Step 10: Allow the Application Port number in AccuWeb.Cloud web base Firewall<\/h3>\n<p>By default, the .Net core application port is not enabled in the AccuWeb.Cloud firewall. To allow it, follow these steps:<\/p>\n<p><b>Step 1: <\/b>Log into AccuWeb.Cloud dashboard.<\/p>\n<p><b>Step 2:<\/b> Select the environment where .NET Core and MSSQL Server are installed. Here, we use netcore-with-mssql as an example. Then, click the <b>Settings<\/b> icon.<\/p>\n<div class=\"main-tooltip-btn\">\n<a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/application\/dot-net-core-hosting\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">.Net Core Hosting <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a>\n<\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50967 size-full\" title=\"Select the environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/13.png\" alt=\"Select the environment\" width=\"559\" height=\"261\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/13.png 559w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/13-300x140.png 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p><b>Step 3:<\/b> In the Settings window, go to <b>Firewall<\/b> -&gt; <b>Inbound Rules<\/b>.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50968 size-full\" title=\"Settings window\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/14.png\" alt=\"Settings window\" width=\"557\" height=\"241\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/14.png 557w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/14-300x130.png 300w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/><\/a><\/p>\n<p><b>Step 4:<\/b> Click Add to create a new rule and enter the following details:<\/p>\n<p><b>Name: <\/b>Enter a descriptive name for the rule.<\/p>\n<p><b>Protocol:<\/b> Choose TCP, UDP, or Both.<\/p>\n<p><b>Port Range:<\/b> Enter 5000 for .Net Core app service. Leave blank to apply to all ports.<\/p>\n<p><b>Source:<\/b> Define the source (specific IP addresses or network interface).<\/p>\n<p><b>Priority:<\/b> Set the order in which the rule should be applied.<\/p>\n<p><b>Action: <\/b>Select Allow to enable the MSSQL port in AccuWeb.Cloud.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50969 size-full\" title=\"Create a new rule\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/15.png\" alt=\"Create a new rule\" width=\"563\" height=\"282\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/15.png 563w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/15-300x150.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<p><b>Step 5:<\/b> Click Add to apply the rule.<\/p>\n<p><b>Step 6:<\/b> Verify the changes in the Inbound Rules panel to confirm the port is open.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50970 size-full\" title=\"Inbound Rules panel\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/16.png\" alt=\"Inbound Rules panel\" width=\"561\" height=\"261\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/16.png 561w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/16-300x140.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Step 11: Test the Application<\/h3>\n<p>Before deploying, it&#8217;s important to <b>test the application<\/b> to make sure everything is working.<\/p>\n<p>1. Start the application by running:<\/p>\n<pre><code class=\"language-javascript\"><b>dotnet run<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50971 size-full\" title=\"Test the Application\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/17.png\" alt=\"Test the Application\" width=\"562\" height=\"266\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/17.png 562w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/17-300x142.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/a><\/p>\n<div class=\"main-tooltip-btn\">\n<a class=\"tooltip-link\" href=\"https:\/\/accuweb.cloud\/application\/dot-net-core-hosting\" target=\"_blank\" rel=\"noopener\"><button class=\"tooltip-btn\">.Net Core Hosting <i class=\"fa-solid fa-arrow-right-long\"><\/i><\/button><\/a>\n<\/div>\n<p>2. If there are no errors, your application will run successfully.<\/p>\n<p>3. Open a web browser (Chrome, Firefox, etc.) and go to:<\/p>\n<p>http:\/\/your-server-ipaddress:5000<\/p>\n<p>Replace your-server-ipaddress with your actual server IP address.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50972 size-full\" title=\"Open a web browser\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/18.png\" alt=\"Open a web browser\" width=\"567\" height=\"334\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/18.png 567w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/03\/18-300x177.png 300w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/a><\/p>\n<p>You should see the Employee Management System running if everything is set up correctly!<\/p>\n<h2 class=\"ack-h2\">Conclusion:<\/h2>\n<p>Connecting <b>.NET Core<\/b> with <b>MSSQL Server<\/b> on <b>Linux<\/b> helps build applications that work on different platforms. By installing <b>.NET Core<\/b>, setting up <b>MSSQL Server<\/b>, and configuring <b>Entity Framework Core<\/b> with <b>DbContext<\/b>, you can easily manage and interact with the database.\u00a0<\/p>\n<p>This setup makes data handling <b>efficient, scalable, and high-performing<\/b>, which is great for modern web applications.<\/p>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-50954","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-windows-and-dotnet","faq_topics-integrate-dot-net-core-with-mssql-on-linux","faq_topics-kb","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrate .NET Core with MSSQL on Linux \u2013 Step-by-Step<\/title>\n<meta name=\"description\" content=\"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to integrate .Net Core with MSSQL Server in Linux System?\" \/>\n<meta property=\"og:description\" content=\"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T13:16:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"How to integrate .Net Core with MSSQL Server in Linux System?\",\"datePublished\":\"2025-03-15T10:53:35+00:00\",\"dateModified\":\"2026-02-17T13:16:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\"},\"wordCount\":1097,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\",\"name\":\"Integrate .NET Core with MSSQL on Linux \u2013 Step-by-Step\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2025-03-15T10:53:35+00:00\",\"dateModified\":\"2026-02-17T13:16:36+00:00\",\"description\":\"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to integrate .Net Core with MSSQL Server in Linux System?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Integrate .NET Core with MSSQL on Linux \u2013 Step-by-Step","description":"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux","og_locale":"en_US","og_type":"article","og_title":"How to integrate .Net Core with MSSQL Server in Linux System?","og_description":"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-17T13:16:36+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"How to integrate .Net Core with MSSQL Server in Linux System?","datePublished":"2025-03-15T10:53:35+00:00","dateModified":"2026-02-17T13:16:36+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux"},"wordCount":1097,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux","url":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux","name":"Integrate .NET Core with MSSQL on Linux \u2013 Step-by-Step","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2025-03-15T10:53:35+00:00","dateModified":"2026-02-17T13:16:36+00:00","description":"Learn how to integrate .NET Core with MSSQL Server on Linux. Step-by-step guide for seamless database connectivity and setup.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/integrate-dot-net-core-with-mssql-on-linux#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"How to integrate .Net Core with MSSQL Server in Linux System?"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=50954"}],"version-history":[{"count":9,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50954\/revisions"}],"predecessor-version":[{"id":52941,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50954\/revisions\/52941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=50954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}