TdsBulkLoadContext Class
Provides the rows of a bulk load.
public sealed class TdsBulkLoadContextConstructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Columns | Gets the columns the client sends, in the order of the values of TdsBulkLoadContext.Rows. |
| DatabaseName | Gets the database of the destination table, or null when the client did not specify one. |
| Options | Gets the options of the insert bulk statement, such as TABLOCK, KEEP_NULLS or ORDER([Id] ASC). |
| RemoteEndPoint | Gets the remote endpoint of the client. |
| Rows | Gets the rows, one value per column of TdsBulkLoadContext.Columns. A SQL NULL is null. |
| SchemaName | Gets the schema of the destination table, such as dbo, or null when the client did not specify one. |
| TableName | Gets the name of the destination table, without its schema and quotes, such as Orders for [dbo].[Orders]. |
| UserContext | Gets the authenticated user context associated with the connection. |
Columns
TdsBulkLoadContext.csGets the columns the client sends, in the order of the values of TdsBulkLoadContext.Rows.
public required IReadOnlyList<TdsColumn> Columns { get; init; }Property value
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.
DatabaseName
TdsBulkLoadContext.csOptions
TdsBulkLoadContext.csGets the options of the insert bulk statement, such as TABLOCK, KEEP_NULLS or ORDER([Id] ASC).
public IReadOnlyList<string> Options { get; init; }Property value
RemoteEndPoint
TdsBulkLoadContext.csGets 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.
SchemaName
TdsBulkLoadContext.csTableName
TdsBulkLoadContext.csUserContext
TdsBulkLoadContext.csGets the authenticated user context associated with the connection.
public ClaimsPrincipal? UserContext { get; init; }