Fluens.Migrations.SqlServer 0.7.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fluens.Migrations.SqlServer --version 0.7.7
                    
NuGet\Install-Package Fluens.Migrations.SqlServer -Version 0.7.7
                    
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="Fluens.Migrations.SqlServer" Version="0.7.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fluens.Migrations.SqlServer" Version="0.7.7" />
                    
Directory.Packages.props
<PackageReference Include="Fluens.Migrations.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 Fluens.Migrations.SqlServer --version 0.7.7
                    
#r "nuget: Fluens.Migrations.SqlServer, 0.7.7"
                    
#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 Fluens.Migrations.SqlServer@0.7.7
                    
#: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=Fluens.Migrations.SqlServer&version=0.7.7
                    
Install as a Cake Addin
#tool nuget:?package=Fluens.Migrations.SqlServer&version=0.7.7
                    
Install as a Cake Tool

Fluens.Migrations.SqlServer

SQL Server provider for Fluens.Migrations — nvarchar(max) attempt_history column type, datetimeoffset column helper, and FluentMigrator.SqlServer partial-index filters.

Installation

dotnet add package Fluens.Migrations.SqlServer

Usage

Opt in from the AddFluens callback on FluentMigrator's own ConfigureRunner pipeline — there is no separate top-level registration method:

services.AddFluentMigratorCore()
    .ConfigureRunner(rb => rb
        .AddSqlServer()                              // FluentMigrator's own provider registration
        .WithGlobalConnectionString(connectionString)
        .ScanIn(typeof(CreateOrdersSchema).Assembly).For.Migrations()
        .AddFluens(f => f.AddSqlServer()));           // Fluens provider-conventions opt-in

AddSqlServer() registers SqlServerMigrationConventions as the singleton IMigrationProviderConventions (TryAddSingleton — calling it twice, or alongside AddPostgres(), keeps whichever ran first). FluentMigrator's own constructor injection resolves it into every FluensMigration subclass at runtime — a single, unchanged migration class creates the same schema on both providers.

Conventions

Convention Value
JsonColumnType (dead-letter attempt_history) nvarchar(max)
ApplyFilter FluentMigrator.SqlServer's .Filter(predicate) extension — every <column> IS NULL clause in the predicate is bracket-quoted first so the resulting DDL text matches SQL Server's sys.indexes.filter_definition normalization and the Fluens.Messaging.SqlServer EF HasFilter strings

Column type helpers

using Fluens.Migrations.SqlServer;

Create.Table("customers").InSchema("orders")
    .WithColumn("id").AsInt32().PrimaryKey().Identity()
    .WithColumn("notes").AsNVarCharMax().Nullable()             // unbounded Unicode text
    .WithColumn("created_at").AsDateTimeOffset2().NotNullable(); // timestamp with time zone

AsDateTimeOffset2() is the SQL Server counterpart to PostgreSQL's AsTimestampTz() — named with a trailing "2" because IColumnTypeSyntax<TNext> already declares a member method AsDateTimeOffset(), which would otherwise shadow an extension method of the same name.

License

This project is licensed under the MIT 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
0.7.11 0 9/15/2026
0.7.10 43 9/13/2026
0.7.9 49 9/11/2026
0.7.8 47 9/10/2026
0.7.7 43 9/10/2026