Constructor SqlServerStorage
SqlServerStorage(string, TimeProvider?, SqlServerStorageOptions?)
Creates the provider over a connection string.
public SqlServerStorage(string connectionString, TimeProvider? time = null, SqlServerStorageOptions? options = null)
Parameters
connectionStringstringtimeTimeProvideroptionsSqlServerStorageOptions
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
connectionStringis empty.