Table of Contents

Constructor SqlServerStorage

Namespace
Millrace.Storage.SqlServer
Assembly
Millrace.Storage.SqlServer.dll

SqlServerStorage(string, TimeProvider?, SqlServerStorageOptions?)

Creates the provider over a connection string.

public SqlServerStorage(string connectionString, TimeProvider? time = null, SqlServerStorageOptions? options = null)

Parameters

connectionString string
time TimeProvider
options SqlServerStorageOptions

Remarks

A connection string rather than a data source object, because Microsoft.Data.SqlClient has no equivalent of Npgsql's NpgsqlDataSource for this to mirror. time defaults to System and every now comparison goes through it, never database time.

Exceptions

ArgumentException

connectionString is empty.