DbContextOptionsServiceCollectionExtension Class
Namespace: PTS.EntityLayer.Extensibility
Assembly: PTS.EntityLayer.Extensibility.dll
Options extension holding service definitions that will be injected into Microsoft.EntityFrameworkCore.DbContext
Syntax
public class DbContextOptionsServiceCollectionExtension : IDbContextOptionsExtension
Inheritance
System.Object
DbContextOptionsServiceCollectionExtension
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension
Constructors
DbContextOptionsServiceCollectionExtension()
Declaration
public DbContextOptionsServiceCollectionExtension()
Properties
Info
Declaration
public DbContextOptionsExtensionInfo Info { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo |
Services
Services that will be injected to created Microsoft.EntityFrameworkCore.DbContext
Declaration
public IEntityServiceCollection Services { get; }
Property Value
Type | Description |
---|---|
IEntityServiceCollection |
Methods
ApplyServices(IServiceCollection)
Injects services to parent Microsoft.Extensions.DependencyInjection.IServiceCollection
Declaration
public void ApplyServices(IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The collection to add services to. |
Validate(IDbContextOptions)
Validate that all options in the extension are valid.
Declaration
public void Validate(IDbContextOptions options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions | options | The options being validated. |
Remarks
This implementation has no functionality.
Implements
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Extension Methods
See Also
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension