TdsBulkLoadContext Class

Provides the rows of a bulk load.

public sealed class TdsBulkLoadContext

Constructors

NameDescription
TdsBulkLoadContext()

TdsBulkLoadContext()

TdsBulkLoadContext.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public TdsBulkLoadContext()

No documentation is available.

Properties

NameDescription
ColumnsGets the columns the client sends, in the order of the values of TdsBulkLoadContext.Rows.
DatabaseNameGets the database of the destination table, or null when the client did not specify one.
OptionsGets the options of the insert bulk statement, such as TABLOCK, KEEP_NULLS or ORDER([Id] ASC).
RemoteEndPointGets the remote endpoint of the client.
RowsGets the rows, one value per column of TdsBulkLoadContext.Columns. A SQL NULL is null.
SchemaNameGets the schema of the destination table, such as dbo, or null when the client did not specify one.
TableNameGets the name of the destination table, without its schema and quotes, such as Orders for [dbo].[Orders].
UserContextGets the authenticated user context associated with the connection.

Gets the columns the client sends, in the order of the values of TdsBulkLoadContext.Rows.

public required IReadOnlyList<TdsColumn> Columns { get; init; }

Property value

IReadOnlyList<TdsColumn>

Remarks

These are the columns of TdsBulkLoadHandler.GetTableColumns that the column mappings of SqlBulkCopy target, so a column the client does not copy is missing.

Gets the database of the destination table, or null when the client did not specify one.

public string? DatabaseName { get; init; }

Property value

string?

Gets the options of the insert bulk statement, such as TABLOCK, KEEP_NULLS or ORDER([Id] ASC).

public IReadOnlyList<string> Options { get; init; }

Property value

IReadOnlyList<string>

RemoteEndPoint

TdsBulkLoadContext.cs

Gets the remote endpoint of the client.

public required EndPoint RemoteEndPoint { get; init; }

Property value

EndPoint

Gets the rows, one value per column of TdsBulkLoadContext.Columns. A SQL NULL is null.

public required IReadOnlyList<IReadOnlyList<object?>> Rows { get; init; }

Property value

IReadOnlyList<IReadOnlyList<object?>>

Remarks

A value has the .NET type of its column, as the query parameters have: Int32 for TdsColumnType.Int32, String for TdsColumnType.NVarChar, and so on.

Gets the schema of the destination table, such as dbo, or null when the client did not specify one.

public string? SchemaName { get; init; }

Property value

string?

Gets the name of the destination table, without its schema and quotes, such as Orders for [dbo].[Orders].

public required string TableName { get; init; }

Property value

string

Gets the authenticated user context associated with the connection.

public ClaimsPrincipal? UserContext { get; init; }

Property value

ClaimsPrincipal?