Class MongoDbDataOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Data.MongoDB.Configuration
Assembly: Cephalon.Data.MongoDB.dll
Configuration options for the MongoDB data provider (Engine:Data:MongoDB).
public sealed class MongoDbDataOptionsInheritance
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()
Fields
Section titled “Fields”DefaultConnectionString
Section titled “ DefaultConnectionString”Gets the default MongoDB connection string used when neither connection setting is supplied.
public const string DefaultConnectionString = "mongodb://localhost:27017"Field Value
Section titled “Field Value”ProviderId
Section titled “ ProviderId”Gets the canonical provider identifier emitted by the pack.
public const string ProviderId = "mongodb"Field Value
Section titled “Field Value”SectionPath
Section titled “ SectionPath”Gets the configuration section path used by default for MongoDB data settings.
public const string SectionPath = "Engine:Data:MongoDB"Field Value
Section titled “Field Value”Properties
Section titled “Properties”ChangeStreamCaptures
Section titled “ ChangeStreamCaptures”Gets the provider-native MongoDB change-stream captures that should be contributed to the active CDC runtime.
public IList<MongoDbChangeStreamCaptureOptions> ChangeStreamCaptures { get; }Property Value
Section titled “Property Value”IList<MongoDbChangeStreamCaptureOptions>
CollectionPrefix
Section titled “ CollectionPrefix”Gets or sets an optional prefix for all Cephalon-managed collections (e.g. “app_”).
public string CollectionPrefix { get; set; }Property Value
Section titled “Property Value”ConnectionString
Section titled “ ConnectionString”Gets or sets the inline MongoDB connection string.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Use either
ConnectionStringName
Section titled “ ConnectionStringName”Gets or sets the root ConnectionStrings entry name to resolve for MongoDB.
public string? ConnectionStringName { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Use either
DatabaseName
Section titled “ DatabaseName”Gets or sets the target database name.
public string DatabaseName { get; set; }Property Value
Section titled “Property Value”RegisterInbox
Section titled “ RegisterInbox”Gets or sets a value indicating whether the pack should register the MongoDB-backed inbox implementation.
public bool RegisterInbox { get; set; }Property Value
Section titled “Property Value”RegisterOutbox
Section titled “ RegisterOutbox”Gets or sets a value indicating whether the pack should register the MongoDB-backed outbox implementation.
public bool RegisterOutbox { get; set; }