TdsEndpointRouteBuilderExtensions Class

Extension methods for registering TDS callbacks on endpoint builders.

public static class TdsEndpointRouteBuilderExtensions

Methods

NameDescription
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.cs

Registers the TDS authentication callback.

public static IEndpointRouteBuilder MapTdsAuthenticationHandler(this IEndpointRouteBuilder endpoints, TdsAuthenticationDelegate handler)

MapTdsBulkLoadHandler(IEndpointRouteBuilder, TdsBulkLoadHandler)

TdsEndpointRouteBuilderExtensions.cs

Registers the handler of the bulk loads sent by SqlBulkCopy.

public static IEndpointRouteBuilder MapTdsBulkLoadHandler(this IEndpointRouteBuilder endpoints, TdsBulkLoadHandler handler)

MapTdsHandlers(IEndpointRouteBuilder, TdsAuthenticationDelegate, TdsQueryDelegate)

TdsEndpointRouteBuilderExtensions.cs

Registers both authentication and query callbacks.

public static IEndpointRouteBuilder MapTdsHandlers(this IEndpointRouteBuilder endpoints, TdsAuthenticationDelegate authenticate, TdsQueryDelegate query)

MapTdsQueryEngine(IEndpointRouteBuilder, TdsQueryEngineOptions)

TdsEndpointRouteBuilderExtensions.cs

Registers 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.cs

Registers the TDS query callback.

public static IEndpointRouteBuilder MapTdsQueryHandler(this IEndpointRouteBuilder endpoints, TdsQueryDelegate handler)