Show / Hide Table of Contents

Class EntityFrameworkSeltzrApplicationBuilderExtensions

Extension methods for the IApplicationBuilder interface.

Inheritance
Object
EntityFrameworkSeltzrApplicationBuilderExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Seltzr.EntityFramework.dll
Syntax
C#
public static class EntityFrameworkSeltzrApplicationBuilderExtensions

Methods

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, NoUser>>)

Adds Seltzr middleware with Entity Framework to the app at the root ("/") endpoint without a user context

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<TModel, TContext>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
    where TModel : class where TContext : DbContext
Parameters
appIApplicationBuilder

The app to add Seltzr to

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>)

Adds Seltzr middleware with Entity Framework to the app without a user context

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<TModel, TContext>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler)
    where TModel : class where TContext : DbContext
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, NoUser>>, Action<IEndpointConventionBuilder>)

Adds Seltzr middleware with Entity Framework to the app without a user context

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<TModel, TContext>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, NoUser>> optionsHandler, Action<IEndpointConventionBuilder> routeOptionsHandler)
    where TModel : class where TContext : DbContext
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, NoUser>>

A handler to set options for this Seltzr API

routeOptionsHandlerAction<IEndpointConventionBuilder>

A handler to set ASP.NET Core options

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext, TUser>(IApplicationBuilder, Action<SeltzrOptionsBuilder<TModel, TUser>>)

Adds Seltzr middleware with Entity Framework to the app at the root ("/") endpoint

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<TModel, TContext, TUser>(this IApplicationBuilder app, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
    where TModel : class where TContext : DbContext where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

TUser

The user to authenticate with the API

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>)

Adds Seltzr middleware with Entity Framework to the app

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<TModel, TContext, TUser>(this IApplicationBuilder app, string route, Action<SeltzrOptionsBuilder<TModel, TUser>> optionsHandler)
    where TModel : class where TContext : DbContext where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

TUser

The user to authenticate with the API

| Improve this Doc View Source

AddEntityFrameworkSeltzr<TModel, TContext, TUser>(IApplicationBuilder, String, Action<SeltzrOptionsBuilder<TModel, TUser>>, Action<IEndpointConventionBuilder>, Expression<Func<TModel, Object>>[])

Adds Seltzr middleware with Entity Framework to the app

C#
public static IApplicationBuilder AddEntityFrameworkSeltzr<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 : DbContext where TUser : class
Parameters
appIApplicationBuilder

The app to add Seltzr to

routeString

The base route for Seltzr

optionsHandlerAction<SeltzrOptionsBuilder<TModel, TUser>>

A handler to set options for this Seltzr API

routeOptionsHandlerAction<IEndpointConventionBuilder>

A handler to set ASP.NET Core options

primaryKeyPropertiesExpression<Func<TModel, Object>>[]

An array of properties that make up the primary key. If omitted, the primary key will be determined automatically

Returns

IApplicationBuilder

The same IApplicationBuilder, for chaining

Type Parameters
TModel

The type of model to use with the API

TContext

The type of database context to use to access TModel entities

TUser

The user to authenticate with the API

  • Improve this Doc
  • View Source
Back to top Generated by DocFX