Show / Hide Table of Contents

Class OpenIddictEntityFrameworkBuilder

Exposes the necessary methods required to configure the OpenIddict Entity Framework 6.x services.

Inheritance
System.Object
OpenIddictEntityFrameworkBuilder
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictEntityFrameworkBuilder

Constructors

OpenIddictEntityFrameworkBuilder(IServiceCollection)

Initializes a new instance of OpenIddictEntityFrameworkBuilder.

Declaration
public OpenIddictEntityFrameworkBuilder(IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services

The services collection.

Properties

Services

Gets the services collection.

Declaration
public IServiceCollection Services { get; }
Property Value
Type Description
IServiceCollection

Methods

Configure(Action<OpenIddictEntityFrameworkOptions>)

Amends the default OpenIddict Entity Framework 6.x configuration.

Declaration
public OpenIddictEntityFrameworkBuilder Configure(Action<OpenIddictEntityFrameworkOptions> configuration)
Parameters
Type Name Description
Action<OpenIddictEntityFrameworkOptions> configuration

The delegate used to configure the OpenIddict options.

Returns
Type Description
OpenIddictEntityFrameworkBuilder

The OpenIddictEntityFrameworkBuilder.

Remarks

This extension can be safely called multiple times.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

ReplaceDefaultEntities<TApplication, TAuthorization, TScope, TToken, TKey>()

Configures OpenIddict to use the specified entities, derived from the default OpenIddict Entity Framework 6.x entities.

Declaration
public OpenIddictEntityFrameworkBuilder ReplaceDefaultEntities<TApplication, TAuthorization, TScope, TToken, TKey>()
    where TApplication : OpenIddictEntityFrameworkApplication<TKey, TAuthorization, TToken> where TAuthorization : OpenIddictEntityFrameworkAuthorization<TKey, TApplication, TToken> where TScope : OpenIddictEntityFrameworkScope<TKey> where TToken : OpenIddictEntityFrameworkToken<TKey, TApplication, TAuthorization> where TKey : IEquatable<TKey>
Returns
Type Description
OpenIddictEntityFrameworkBuilder

The OpenIddictEntityFrameworkBuilder.

Type Parameters
Name Description
TApplication
TAuthorization
TScope
TToken
TKey

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

UseDbContext(Type)

Configures the OpenIddict Entity Framework 6.x stores to use the specified database context type.

Declaration
public OpenIddictEntityFrameworkBuilder UseDbContext(Type type)
Parameters
Type Name Description
Type type

The type of the used by OpenIddict.

Returns
Type Description
OpenIddictEntityFrameworkBuilder

The OpenIddictEntityFrameworkBuilder.

UseDbContext<TContext>()

Configures the OpenIddict Entity Framework 6.x stores to use the specified database context type.

Declaration
public OpenIddictEntityFrameworkBuilder UseDbContext<TContext>()
    where TContext : DbContext
Returns
Type Description
OpenIddictEntityFrameworkBuilder

The OpenIddictEntityFrameworkBuilder.

Type Parameters
Name Description
TContext

The type of the used by OpenIddict.

In This Article
Back to top Generated by DocFX