TdsEndpointRouteBuilderExtensions Class
Extension methods for registering TDS callbacks on endpoint builders.
public static class TdsEndpointRouteBuilderExtensionsMethods
| Name | Description |
|---|---|
| MapTdsAuthenticationHandler(IEndpointRouteBuilder, TdsAuthenticationDelegate) | Registers the TDS authentication callback. |
| MapTdsBulkLoadHandler(IEndpointRouteBuilder, TdsBulkLoadHandler) | Registers the handler of the bulk loads sent by SqlBulkCopy. |
| MapTdsHandlers(IEndpointRouteBuilder, TdsAuthenticationDelegate, TdsQueryDelegate) | Registers both authentication and query callbacks. |
| MapTdsQueryEngine(IEndpointRouteBuilder, TdsQueryEngineOptions) | Registers the built-in TDS query engine as the query callback. |
| MapTdsQueryHandler(IEndpointRouteBuilder, TdsQueryDelegate) | Registers the TDS query callback. |
MapTdsAuthenticationHandler(IEndpointRouteBuilder, TdsAuthenticationDelegate)
TdsEndpointRouteBuilderExtensions.csRegisters the TDS authentication callback.
public static IEndpointRouteBuilder MapTdsAuthenticationHandler(this IEndpointRouteBuilder endpoints, TdsAuthenticationDelegate handler)MapTdsBulkLoadHandler(IEndpointRouteBuilder, TdsBulkLoadHandler)
TdsEndpointRouteBuilderExtensions.csRegisters the handler of the bulk loads sent by SqlBulkCopy.
public static IEndpointRouteBuilder MapTdsBulkLoadHandler(this IEndpointRouteBuilder endpoints, TdsBulkLoadHandler handler)Parameters
endpointsIEndpointRouteBuilderhandlerTdsBulkLoadHandler
Returns
Remarks
This sets TdsServerOptions.BulkLoadHandler.
MapTdsHandlers(IEndpointRouteBuilder, TdsAuthenticationDelegate, TdsQueryDelegate)
TdsEndpointRouteBuilderExtensions.csRegisters both authentication and query callbacks.
public static IEndpointRouteBuilder MapTdsHandlers(this IEndpointRouteBuilder endpoints, TdsAuthenticationDelegate authenticate, TdsQueryDelegate query)Parameters
endpointsIEndpointRouteBuilderauthenticateTdsAuthenticationDelegatequeryTdsQueryDelegate
Returns
MapTdsQueryEngine(IEndpointRouteBuilder, TdsQueryEngineOptions)
TdsEndpointRouteBuilderExtensions.csRegisters the built-in TDS query engine as the query callback.
[RequiresDynamicCode("The query engine compiles LINQ expression trees and creates projection types and generic instantiations at run time.")]
[RequiresUnreferencedCode("The query engine translates SQL into LINQ expression trees and reads the members of the query roots and stored procedures with reflection.")]
public static IEndpointRouteBuilder MapTdsQueryEngine(this IEndpointRouteBuilder endpoints, TdsQueryEngineOptions options)MapTdsQueryHandler(IEndpointRouteBuilder, TdsQueryDelegate)
TdsEndpointRouteBuilderExtensions.csRegisters the TDS query callback.
public static IEndpointRouteBuilder MapTdsQueryHandler(this IEndpointRouteBuilder endpoints, TdsQueryDelegate handler)