Class EntityFrameworkDatabaseRoleContext
Namespace: Cephalon.Data.EntityFramework.Configuration
Assembly: Cephalon.Data.EntityFramework.dll
Describes one resolved Engine:Databases role as consumed by the Entity Framework pack.
public sealed class EntityFrameworkDatabaseRoleContextInheritance
Section titled “Inheritance”object ← EntityFrameworkDatabaseRoleContext
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”EntityFrameworkDatabaseRoleContext(string, string, DatabaseTargetSelection, DatabaseRuntimeSelection, string)
Section titled “ EntityFrameworkDatabaseRoleContext(string, string, DatabaseTargetSelection, DatabaseRuntimeSelection, string)”Initializes a new instance of the
public EntityFrameworkDatabaseRoleContext(string requestedRoleId, string resolvedRoleId, DatabaseTargetSelection target, DatabaseRuntimeSelection runtime, string connectionString)Parameters
Section titled “Parameters”requestedRoleId string
The logical role the caller requested, such as write or read.
resolvedRoleId string
The logical role that ultimately supplied the effective database target.
target DatabaseTargetSelection
The effective database target metadata after applying any configured role reference.
runtime DatabaseRuntimeSelection
The merged runtime settings for the role.
connectionString string
The resolved connection string for the role.
Properties
Section titled “Properties”ConnectionString
Section titled “ ConnectionString”Gets the resolved connection string for the selected role.
public string ConnectionString { get; }Property Value
Section titled “Property Value”ConnectionStringName
Section titled “ ConnectionStringName”Gets the selected named connection-string reference, if one was declared.
public string? ConnectionStringName { get; }Property Value
Section titled “Property Value”IsFallback
Section titled “ IsFallback”Gets a value indicating whether the requested role resolved through another configured role.
public bool IsFallback { get; }Property Value
Section titled “Property Value”Provider
Section titled “ Provider”Gets the selected provider identifier, if one was declared.
public string? Provider { get; }Property Value
Section titled “Property Value”RequestedRoleId
Section titled “ RequestedRoleId”Gets the logical database role requested by the caller.
public string RequestedRoleId { get; }Property Value
Section titled “Property Value”ResolvedRoleId
Section titled “ ResolvedRoleId”Gets the logical database role that supplied the effective target.
public string ResolvedRoleId { get; }Property Value
Section titled “Property Value”Gets the convenience role identifier used by most host callbacks.
public string Role { get; }Property Value
Section titled “Property Value”Runtime
Section titled “ Runtime”Gets the merged runtime settings for the selected role.
public DatabaseRuntimeSelection Runtime { get; }Property Value
Section titled “Property Value”DatabaseRuntimeSelection
Schema
Section titled “ Schema”Gets the selected schema override, if one was declared.
public string? Schema { get; }Property Value
Section titled “Property Value”Target
Section titled “ Target”Gets the effective database target metadata after applying any configured role reference.
public DatabaseTargetSelection Target { get; }Property Value
Section titled “Property Value”DatabaseTargetSelection
UsesNamedConnectionString
Section titled “ UsesNamedConnectionString”Gets a value indicating whether the role resolved through a named connection string.
public bool UsesNamedConnectionString { get; }