@tsonic/efcore-sqlserver
v10.0.41
Published
TypeScript type definitions for Microsoft.EntityFrameworkCore.SqlServer (+ dependencies) for .NET 10
Downloads
1,013
Maintainers
Readme
@tsonic/efcore-sqlserver
TypeScript declarations and CLR binding metadata for the EF Core SQL Server
provider (Microsoft.EntityFrameworkCore.SqlServer) on .NET 10.
This is a generated binding package. It exposes provider APIs to TypeScript and Tsonic while your workspace references the real NuGet assemblies.
Install
npm install @tsonic/efcore-sqlserver @tsonic/efcore @tsonic/dotnet @tsonic/coreUse with Tsonic
tsonic add nuget Microsoft.EntityFrameworkCore.SqlServer <version> @tsonic/efcore-sqlserver
tsonic restoreImports
Provider APIs are exported from the generated Microsoft.EntityFrameworkCore
namespace facade:
import { SqlServerDbContextOptionsExtensions } from "@tsonic/efcore-sqlserver/Microsoft.EntityFrameworkCore.js";Use EF Core base types from @tsonic/efcore:
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";UseSqlServer example
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;Package shape
The package contains generated namespace facades, ESM stubs, internal
declarations, extension buckets, and bindings.json compiler metadata. It uses
@tsonic/efcore, @tsonic/microsoft-extensions, @tsonic/dotnet, and
@tsonic/core as peer packages for shared CLR types.
Versioning
This repo is versioned by .NET major:
- .NET 10 → npm:
@tsonic/[email protected]
Development
Regenerate from sibling checkouts:
npm install
./__build/scripts/generate.shThe generation script requires .NET 10, ../tsbindgen, ../dotnet,
../microsoft-extensions, and ../efcore.
License
MIT
