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
BulkCopyTypeBulkCopyTypeDefault bulk copy mode, used for SqlServer by BulkCopy<T>(DataConnection, IEnumerable<T>) methods, if mode is not specified explicitly. Default value: ProviderSpecific.
GenerateScopeIdentityboolEnables 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
Methods
CreateID(IdentifierBuilder)
protected override IdentifierBuilder CreateID(IdentifierBuilder builder)
Parameters
builderIdentifierBuilder
Returns
Equals(SqlServerOptions?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SqlServerOptions? other)
Parameters
otherSqlServerOptionsAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
otherparameter; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type.
public override int GetHashCode()