Table of Contents

Class SqlServerOptions

Namespace
LinqToDB.DataProvider.SqlServer
Assembly
linq2db.dll
public sealed record SqlServerOptions : DataProviderOptions<SqlServerOptions>, IOptionSet, IConfigurationID, IEquatable<DataProviderOptions<SqlServerOptions>>, IEquatable<SqlServerOptions>
Inheritance
SqlServerOptions
Implements
Inherited Members
Extension Methods

Constructors

SqlServerOptions()

public SqlServerOptions()

SqlServerOptions(BulkCopyType, bool)

public SqlServerOptions(BulkCopyType BulkCopyType = BulkCopyType.ProviderSpecific, bool GenerateScopeIdentity = true)

Parameters

BulkCopyType BulkCopyType

Default bulk copy mode, used for SqlServer by BulkCopy<T>(DataConnection, IEnumerable<T>) methods, if mode is not specified explicitly. Default value: ProviderSpecific.

GenerateScopeIdentity bool

Enables identity selection using SCOPE_IDENTITY function for insert with identity APIs. Default value: true.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

GenerateScopeIdentity

Enables identity selection using SCOPE_IDENTITY function for insert with identity APIs. Default value: true.

public bool GenerateScopeIdentity { get; init; }

Property Value

bool

Methods

CreateID(IdentifierBuilder)

protected override IdentifierBuilder CreateID(IdentifierBuilder builder)

Parameters

builder IdentifierBuilder

Returns

IdentifierBuilder

Deconstruct(out BulkCopyType, out bool)

public void Deconstruct(out BulkCopyType BulkCopyType, out bool GenerateScopeIdentity)

Parameters

BulkCopyType BulkCopyType
GenerateScopeIdentity bool

Equals(DataProviderOptions<SqlServerOptions>?)

public override sealed bool Equals(DataProviderOptions<SqlServerOptions>? other)

Parameters

other DataProviderOptions<SqlServerOptions>

Returns

bool

Equals(SqlServerOptions?)

public bool Equals(SqlServerOptions? other)

Parameters

other SqlServerOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

<Clone>$()

public override DataProviderOptions<SqlServerOptions> <Clone>$()

Returns

DataProviderOptions<SqlServerOptions>

Operators

operator ==(SqlServerOptions?, SqlServerOptions?)

public static bool operator ==(SqlServerOptions? left, SqlServerOptions? right)

Parameters

left SqlServerOptions
right SqlServerOptions

Returns

bool

operator !=(SqlServerOptions?, SqlServerOptions?)

public static bool operator !=(SqlServerOptions? left, SqlServerOptions? right)

Parameters

left SqlServerOptions
right SqlServerOptions

Returns

bool