Class OpenIddictEntityFrameworkCoreBuilder
Exposes the necessary methods required to configure the OpenIddict Entity Framework Core services.
Inheritance
System.Object
OpenIddictEntityFrameworkCoreBuilder
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
public class OpenIddictEntityFrameworkCoreBuilder
Constructors
OpenIddictEntityFrameworkCoreBuilder(IServiceCollection)
Declaration
public OpenIddictEntityFrameworkCoreBuilder(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
Amends the default OpenIddict Entity Framework Core configuration.
Declaration
public OpenIddictEntityFrameworkCoreBuilder Configure(Action<OpenIddictEntityFrameworkCoreOptions> configuration)
Parameters
Type |
Name |
Description |
Action<OpenIddictEntityFrameworkCoreOptions> |
configuration |
The delegate used to configure the OpenIddict options.
|
Returns
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<TKey>()
Configures OpenIddict to use the default OpenIddict
Entity Framework Core entities, with the specified key type.
Declaration
public OpenIddictEntityFrameworkCoreBuilder ReplaceDefaultEntities<TKey>()
where TKey : IEquatable<TKey>
Returns
Type Parameters
ReplaceDefaultEntities<TApplication, TAuthorization, TScope, TToken, TKey>()
Configures OpenIddict to use the specified entities, derived
from the default OpenIddict Entity Framework Core entities.
Declaration
public OpenIddictEntityFrameworkCoreBuilder ReplaceDefaultEntities<TApplication, TAuthorization, TScope, TToken, TKey>()
where TApplication : OpenIddictEntityFrameworkCoreApplication<TKey, TAuthorization, TToken> where TAuthorization : OpenIddictEntityFrameworkCoreAuthorization<TKey, TApplication, TToken> where TScope : OpenIddictEntityFrameworkCoreScope<TKey> where TToken : OpenIddictEntityFrameworkCoreToken<TKey, TApplication, TAuthorization> where TKey : IEquatable<TKey>
Returns
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 Core stores to use the specified database context type.
Declaration
public OpenIddictEntityFrameworkCoreBuilder UseDbContext(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
The type of the used by OpenIddict.
|
Returns
UseDbContext<TContext>()
Configures the OpenIddict Entity Framework Core stores to use the specified database context type.
Declaration
public OpenIddictEntityFrameworkCoreBuilder UseDbContext<TContext>()
where TContext : DbContext
Returns
Type Parameters
Name |
Description |
TContext |
The type of the used by OpenIddict.
|