Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.4 KB

File metadata and controls

46 lines (31 loc) · 1.4 KB

MVFC.SQLCraft.MsSQL

🇺🇸 Read in English

CI codecov License Platform NuGet Version NuGet Downloads

Driver para acesso ao Microsoft SQL Server usando [MVFC.SQLCraft] e Microsoft.Data.SqlClient.

Instalação

dotnet add package MVFC.SQLCraft.MsSQL

Recursos

  • Conexão segura com SQL Server
  • Integração com SqlKata
  • Suporte a .NET 9.0+

Exemplo

using MVFC.SQLCraft.MsSQL;

MsSQLCraftDriver _driver = new(connectionString);

driver.Execute("IF OBJECT_ID('dbo.Persons', 'U') IS NULL CREATE TABLE Persons (Id INT IDENTITY(1,1) PRIMARY KEY, Name NVARCHAR(100) NOT NULL);");

var insertQ = new Query("Persons")
                    .AsInsert(new 
                    { 
                        Name = "Alice" 
                    });

var affected = driver.Execute(insertQ);

Licença

MIT