Boris,
I definitely don't see a direct way to set that option in the codebase. I really don't see an option to set generic options for MSSQL either. You'll need to author a method which takes in a MSSQL option and enabled/disabled.
I am no expert in extending FluentMigrator, but I think you've got two options. The codebase doesn't have a lot of activity, but I believe pull requests are welcome. Alternatively, an internal or external library you control should be sufficient.
It might be easiest to extend things by adding the following type of extension.
public static class IExecuteExpressionRootExtensions
{
enum MssqlDatabaseOptions { ALLOW_SNAPSHOT_ISOLATION }
private const string _alterDatabaseOptionSet = @"
DECLARE @enableSnapshotIsolation NVARCHAR(256)
SET @enableSnapshotIsolation = N'ALTER DATABASE ' + DB_NAME() + N' SET {0} {1}'
EXEC sp_executesql @enableSnapshotIsolation
";
public static void WithMssqlOption(this IExecuteExpressionRoot executeExpressionRoot, MssqlDatabaseOptions option, bool enabled)
{
var enabledString = enabled ? "ON" : "OFF";
executeExpressionRoot.Sql(string.Format(_alterDatbaseOptionSet, option.ToString(), enabled ? "ON" : "OFF"));
}
}
Best of luck!
-dev