SqlConnection could not be found in the namespace | C#

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024
  • If you are getting this message: "The type name 'SqlConnection' could not be found in the namespace 'System.Data.SqlClient'. This type has been forwarded to the assembly 'System.Data.SqlClient, Version=4.6.1.0"; it is because you are trying to use the .NET Standard component directly from the .NET Framework (Desktop or ASP.NET).
    ✅ Solution:
    Install all the projects that use System.Data, the NuGet System.Data.SqlClient 4.5.1. or later.

Комментарии • 8