@tsonic/efcore-sqlserver
v10.0.37
Published
TypeScript type definitions for Microsoft.EntityFrameworkCore.SqlServer (+ dependencies) for .NET 10
Maintainers
Readme
@tsonic/efcore-sqlserver
TypeScript type definitions for EF Core SQL Server provider (Microsoft.EntityFrameworkCore.SqlServer + dependencies) for .NET 10.
Generated by tsbindgen from NuGet assemblies and intended for use with the Tsonic compiler (TypeScript → .NET).
What this package is (and isn’t)
- ✅ TypeScript bindings for the SQL Server provider (and its required dependency assemblies).
- ❌ Not a JavaScript runtime module (the
.jsfiles are module stubs for type-only use). - ✅ You still need the real .NET assemblies via NuGet in your Tsonic workspace.
Install (types)
npm install @tsonic/efcore-sqlserver @tsonic/efcore @tsonic/dotnet @tsonic/coreUse with Tsonic (recommended)
tsonic add nuget Microsoft.EntityFrameworkCore.SqlServer <version> @tsonic/efcore-sqlserverImports
import { SqlServerDbContextOptionsExtensions } from "@tsonic/efcore-sqlserver/Microsoft.EntityFrameworkCore.js";You’ll typically also import EF Core base types from @tsonic/efcore:
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";Example (UseSqlServer)
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
import { SqlServerDbContextOptionsExtensions } from "@tsonic/efcore-sqlserver/Microsoft.EntityFrameworkCore.js";
const builder = new DbContextOptionsBuilder();
SqlServerDbContextOptionsExtensions.UseSqlServer(builder, "Server=.;Database=app;Trusted_Connection=True;");
const options = builder.Options;Versioning
This repo is versioned by .NET major:
- .NET 10 → npm:
@tsonic/[email protected]
License
MIT
