Class LinqToDBSeltzrApplicationBuilderExtensions
Extension methods for the IApplicationBuilder interface.
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Seltzr.LinqToDB.dll
Syntax
public static class LinqToDBSeltzrApplicationBuilderExtensions
Methods
AddLinqToDBSeltzr<TModel, TContext>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, NoUser>>)
Adds Seltzr middleware with LinqToDB to the app at the root ("/") endpoint without a user context
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
where TModel : class where TContext : DataConnection
Parameters
The app to add Seltzr to
optionsHandler
Action<SeltzrOptionsBuilder<TModel, NoUser>>
A handler to set options for this Seltzr API
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
AddLinqToDBSeltzr<TModel, TContext>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>)
Adds Seltzr middleware with LinqToDB to the app without a user context
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
where TModel : class where TContext : DataConnection
Parameters
The app to add Seltzr to
route
String
The base route for Seltzr
optionsHandler
Action<SeltzrOptionsBuilder<TModel, NoUser>>
A handler to set options for this Seltzr API
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
AddLinqToDBSeltzr<TModel, TContext>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>, Action<IEndpointConventionBuilder>)
Adds Seltzr middleware with LinqToDB to the app without a user context
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler, Action<IEndpointConventionBuilder> routeOptionsHandler)
where TModel : class where TContext : DataConnection
Parameters
The app to add Seltzr to
route
String
The base route for Seltzr
optionsHandler
Action<SeltzrOptionsBuilder<TModel, NoUser>>
A handler to set options for this Seltzr API
routeOptionsHandler
Action<IEndpointConventionBuilder>
A handler to set ASP.NET Core options
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
AddLinqToDBSeltzr<TModel, TContext, TUser>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, TUser>>)
Adds Seltzr middleware with LinqToDB to the app at the root ("/") endpoint
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext, TUser>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
where TModel : class where TContext : DataConnection where TUser : class
Parameters
The app to add Seltzr to
optionsHandler
Action<SeltzrOptionsBuilder<TModel, TUser>>
A handler to set options for this Seltzr API
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
TUser
The user to authenticate with the API
AddLinqToDBSeltzr<TModel, TContext, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>)
Adds Seltzr middleware with LinqToDB to the app
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext, TUser>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
where TModel : class where TContext : DataConnection where TUser : class
Parameters
The app to add Seltzr to
route
String
The base route for Seltzr
optionsHandler
Action<SeltzrOptionsBuilder<TModel, TUser>>
A handler to set options for this Seltzr API
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
TUser
The user to authenticate with the API
AddLinqToDBSeltzr<TModel, TContext, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>, Action<IEndpointConventionBuilder>, Expression<Func<TModel, Object>>[])
Adds Seltzr middleware with LinqToDB to the app
public static IApplicationBuilder AddLinqToDBSeltzr<TModel, TContext, TUser>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler, Action<IEndpointConventionBuilder> routeOptionsHandler, params Expression<Func<TModel, object>>[] primaryKeyProperties)
where TModel : class where TContext : DataConnection where TUser : class
Parameters
The app to add Seltzr to
route
String
The base route for Seltzr
optionsHandler
Action<SeltzrOptionsBuilder<TModel, TUser>>
A handler to set options for this Seltzr API
routeOptionsHandler
Action<IEndpointConventionBuilder>
A handler to set ASP.NET Core options
primaryKeyProperties
Expression<Func<TModel, Object>>[]
An array of properties that make up the primary key. If omitted, the primary key will be determined automatically
Returns
The same IApplicationBuilder, for chaining
Type Parameters
TModel
The type of model to use with the API
TContext
The type of database connection to use to access TModel
entities
TUser
The user to authenticate with the API