Skip to content

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 EntityFrameworkDatabaseRoleContext

objectEntityFrameworkDatabaseRoleContext

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

EntityFrameworkDatabaseRoleContext(string, string, DatabaseTargetSelection, DatabaseRuntimeSelection, string)

Section titled “ EntityFrameworkDatabaseRoleContext(string, string, DatabaseTargetSelection, DatabaseRuntimeSelection, string)”

Initializes a new instance of the class.

public EntityFrameworkDatabaseRoleContext(string requestedRoleId, string resolvedRoleId, DatabaseTargetSelection target, DatabaseRuntimeSelection runtime, string connectionString)

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.

Gets the resolved connection string for the selected role.

public string ConnectionString { get; }

string

Gets the selected named connection-string reference, if one was declared.

public string? ConnectionStringName { get; }

string?

Gets a value indicating whether the requested role resolved through another configured role.

public bool IsFallback { get; }

bool

Gets the selected provider identifier, if one was declared.

public string? Provider { get; }

string?

Gets the logical database role requested by the caller.

public string RequestedRoleId { get; }

string

Gets the logical database role that supplied the effective target.

public string ResolvedRoleId { get; }

string

Gets the convenience role identifier used by most host callbacks.

public string Role { get; }

string

Gets the merged runtime settings for the selected role.

public DatabaseRuntimeSelection Runtime { get; }

DatabaseRuntimeSelection

Gets the selected schema override, if one was declared.

public string? Schema { get; }

string?

Gets the effective database target metadata after applying any configured role reference.

public DatabaseTargetSelection Target { get; }

DatabaseTargetSelection

Gets a value indicating whether the role resolved through a named connection string.

public bool UsesNamedConnectionString { get; }

bool