NSchema.SqlServer
5.8.1
dotnet add package NSchema.SqlServer --version 5.8.1
NuGet\Install-Package NSchema.SqlServer -Version 5.8.1
<PackageReference Include="NSchema.SqlServer" Version="5.8.1" />
<PackageVersion Include="NSchema.SqlServer" Version="5.8.1" />
<PackageReference Include="NSchema.SqlServer" />
paket add NSchema.SqlServer --version 5.8.1
#r "nuget: NSchema.SqlServer, 5.8.1"
#:package NSchema.SqlServer@5.8.1
#addin nuget:?package=NSchema.SqlServer&version=5.8.1
#tool nuget:?package=NSchema.SqlServer&version=5.8.1
NSchema.SqlServer
SQL Server provider for NSchema, the declarative database schema migration tool for .NET. It plugs SQL Server introspection and DDL generation into NSchema via Microsoft.Data.SqlClient.
Most users should use the NSchema CLI, which already includes this provider. Add this package directly only when embedding the engine in your own application.
Installation
dotnet add package NSchema.Core
dotnet add package NSchema.SqlServer
Requirements
- SQL Server 2016 SP1 or newer
Scope
This provider implements all the parts of NSchema's model that are compatible with SQL Server:
- Supported: schemas, tables, columns (with
DEFAULT,IDENTITY, and persisted computed columns), primary keys, foreign keys, unique constraints, check constraints, indexes (includingINCLUDEcolumns and filtered indexes), views, sequences, scalar/table functions and stored procedures, table-levelGRANTs, triggers, and documentation comments (stored asMS_Descriptionextended properties). - Identifiers are emitted with brackets (
[schema].[name]). - Column changes. SQL Server's
ALTER COLUMNrestates the column's whole type and nullability at once, so NSchema.Core supplies both on the migration actions and the generator folds a paired type/nullability change into one statement. - Not supported (no SQL Server equivalent): enums, domains, composite types, extensions, exclusion constraints, schema renames, and materialized (indexed) views. In-place changes to an identity's seed/increment or a computed column's expression require a table rebuild and raise a clear
NotSupportedException. These all raiseNotSupportedExceptionrather than emitting partial SQL.
NSchema's canonical types map to SQL Server's: boolean → bit, double → float, datetime → datetime2, guid → uniqueidentifier, unbounded varchar/nvarchar/varbinary → (max), and so on.
Documentation
Full documentation lives at nschema.dev:
License
See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Data.SqlClient (>= 7.0.2)
- NSchema.Core (>= 5.10.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.8.1 | 170 | 8/13/2026 |
| 5.8.0 | 108 | 8/11/2026 |
| 5.7.0 | 106 | 8/9/2026 |
| 5.6.0 | 111 | 8/7/2026 |
| 5.5.0 | 96 | 8/6/2026 |
| 5.4.0 | 112 | 8/4/2026 |
| 5.3.0 | 103 | 8/3/2026 |
| 5.2.0 | 106 | 8/3/2026 |
| 5.1.0 | 110 | 8/2/2026 |
| 5.0.0 | 109 | 8/1/2026 |
| 5.0.0-beta.5 | 58 | 7/30/2026 |
| 5.0.0-beta.4 | 65 | 7/28/2026 |
| 5.0.0-beta.3 | 57 | 7/26/2026 |
| 5.0.0-beta.2 | 65 | 7/26/2026 |
| 5.0.0-beta.1 | 68 | 7/26/2026 |
| 5.0.0-alpha.8 | 55 | 7/25/2026 |
| 5.0.0-alpha.7 | 61 | 7/24/2026 |
| 5.0.0-alpha.6 | 61 | 7/23/2026 |
| 5.0.0-alpha.5 | 64 | 7/21/2026 |
| 5.0.0-alpha.4 | 51 | 7/21/2026 |
