NSchema.SqlServer 5.8.1

dotnet add package NSchema.SqlServer --version 5.8.1
                    
NuGet\Install-Package NSchema.SqlServer -Version 5.8.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NSchema.SqlServer" Version="5.8.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NSchema.SqlServer" Version="5.8.1" />
                    
Directory.Packages.props
<PackageReference Include="NSchema.SqlServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NSchema.SqlServer --version 5.8.1
                    
#r "nuget: NSchema.SqlServer, 5.8.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NSchema.SqlServer@5.8.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NSchema.SqlServer&version=5.8.1
                    
Install as a Cake Addin
#tool nuget:?package=NSchema.SqlServer&version=5.8.1
                    
Install as a Cake Tool

NSchema

NSchema.SqlServer

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 (including INCLUDE columns and filtered indexes), views, sequences, scalar/table functions and stored procedures, table-level GRANTs, triggers, and documentation comments (stored as MS_Description extended properties).
  • Identifiers are emitted with brackets ([schema].[name]).
  • Column changes. SQL Server's ALTER COLUMN restates 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 raise NotSupportedException rather than emitting partial SQL.

NSchema's canonical types map to SQL Server's: booleanbit, doublefloat, datetimedatetime2, guiduniqueidentifier, unbounded varchar/nvarchar/varbinary(max), and so on.

Documentation

Full documentation lives at nschema.dev:

License

See LICENSE.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed