DbContextOptionsServiceCollectionExtensionInfo Class
Namespace: PTS.EntityLayer.Extensibility
Assembly: PTS.EntityLayer.Extensibility.dll
Syntax
public class DbContextOptionsServiceCollectionExtensionInfo : DbContextOptionsExtensionInfo
Inheritance
Constructors
DbContextOptionsServiceCollectionExtensionInfo(IDbContextOptionsExtension)
Declaration
public DbContextOptionsServiceCollectionExtensionInfo(IDbContextOptionsExtension dbContextOptionsExtension)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension | dbContextOptionsExtension |
Properties
Extension
The extension for which this instance contains metadata.
Declaration
public virtual DbContextOptionsServiceCollectionExtension Extension { get; }
Property Value
Type | Description |
---|---|
DbContextOptionsServiceCollectionExtension |
IsDatabaseProvider
True if the extension is a database provider; false otherwise.
Declaration
public override bool IsDatabaseProvider { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
LogFragment
A message fragment for logging typically containing information about any useful non-default options that have been configured.
Declaration
public override string LogFragment { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
GetServiceProviderHashCode()
Actionless interface implementation for interface Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptionsExtension
Declaration
public override long GetServiceProviderHashCode()
Returns
Type | Description |
---|---|
System.Int64 | A hash over options that require a new service provider when changed. |
Overrides
Remarks
This implementation has no functionality, returned value is always 0.
PopulateDebugInfo(IDictionary<String, String>)
Populates a dictionary of information that may change between uses of the
extension such that it can be compared to a previous configuration for
this option and differences can be logged. The dictionary key should be prefixed by the
extension name. For example, "SqlServer:"
.
Declaration
public override void PopulateDebugInfo(IDictionary<string, string> debugInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | debugInfo | The dictionary to populate. |