ข้ามไปยังเนื้อหา

Class DatabaseTargetSelection

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll

Describes one database role target resolved for a Cephalon app.

public sealed class DatabaseTargetSelection

objectDatabaseTargetSelection

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

DatabaseTargetSelection(string?, string?, string?, string?, string?, DatabaseRuntimeSelection?)

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

Initializes a new instance of the class.

[JsonConstructor]
public DatabaseTargetSelection(string? provider = null, string? connectionStringName = null, string? connectionString = null, string? useRole = null, string? schema = null, DatabaseRuntimeSelection? runtime = null)

provider string?

connectionStringName string?

connectionString string?

useRole string?

schema string?

runtime DatabaseRuntimeSelection?

Gets the inline connection string selected for this database role.

public string? ConnectionString { get; }

string?

Gets the root connection-string name selected for this database role.

public string? ConnectionStringName { get; }

string?

Gets an empty database-target selection instance.

public static DatabaseTargetSelection Empty { get; }

DatabaseTargetSelection

Gets a value indicating whether any target-selection inputs were explicitly supplied.

public bool HasValues { get; }

bool

Gets the selected logical provider identifier.

public string? Provider { get; }

string?

Gets the role-specific runtime overrides for this database target.

public DatabaseRuntimeSelection Runtime { get; }

DatabaseRuntimeSelection

Gets the schema override selected for this database role.

public string? Schema { get; }

string?

Gets the referenced concrete database role that supplies the physical connection target.

public string? UseRole { get; }

string?