Class DataSettings
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven data settings for a Cephalon app.
public sealed class DataSettingsInheritance
Section titled “Inheritance”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”DataSettings(string?, bool?, bool?, string?)
Section titled “ DataSettings(string?, bool?, bool?, string?)”Initializes a new instance of the
public DataSettings(string? provider = null, bool? readWriteSplit = null, bool? outboxEnabled = null, string? idGenerator = null)Parameters
Section titled “Parameters”provider string?
The selected primary data-provider family or implementation identifier.
readWriteSplit bool?
Whether distinct read and write paths were explicitly selected.
outboxEnabled bool?
Whether the outbox pattern was explicitly enabled.
idGenerator string?
The selected identifier-generation strategy.
Properties
Section titled “Properties”Gets an empty data-settings instance.
public static DataSettings Empty { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any data settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”IdGenerator
Section titled “ IdGenerator”Gets the selected identifier-generation strategy.
public string? IdGenerator { get; }Property Value
Section titled “Property Value”OutboxEnabled
Section titled “ OutboxEnabled”Gets a value indicating whether the outbox pattern was explicitly enabled.
public bool? OutboxEnabled { get; }Property Value
Section titled “Property Value”bool?
Provider
Section titled “ Provider”Gets the selected primary data-provider family or implementation identifier.
public string? Provider { get; }Property Value
Section titled “Property Value”ReadWriteSplit
Section titled “ ReadWriteSplit”Gets a value indicating whether distinct read and write paths were explicitly selected.
public bool? ReadWriteSplit { get; }Property Value
Section titled “Property Value”bool?
Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads data settings from configuration.
public static DataSettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed data settings.