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

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

Equals(SqlServerOptions?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(SqlServerOptions? other)

Parameters

other SqlServerOptions

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type.

public override int GetHashCode()

Returns

int

A hash code for the current object.