Class PgConnectionConfiguration
This class represents is a (non-sharded) database connection. Note that the SecurityKey must match a defined key in the DataSecurityOptions; likewise, a ResilienceKey (if defined) must match as key in the DataResilienceOptions array. If the ResilienceKey is not defined, a default data resilience strategy will be used.
Inheritance
System.Object
PgConnectionConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ArgentSea.Pg
Assembly: ArgentSea.Pg.dll
Syntax
public class PgConnectionConfiguration : PgConnectionPropertiesBase, INotifyPropertyChanged, IDataConnection
Constructors
| Improve this Doc View SourcePgConnectionConfiguration()
Declaration
public PgConnectionConfiguration()
Properties
| Improve this Doc View SourceConnectionDescription
Declaration
public string ConnectionDescription { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAdd(KeyValuePair<String, Object>)
Adds an item to the configuration
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.Object> | item |
Contains(KeyValuePair<String, Object>)
Determines whether the configuration contains a specific key-value pair.
Declaration
public bool Contains(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.Object> | item |
Returns
Type | Description |
---|---|
System.Boolean |
ContainsKey(String)
Determines whether the configuration contains a specific key.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
Returns
Type | Description |
---|---|
System.Boolean |
GetConnectionString(ILogger)
Declaration
public string GetConnectionString(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger |
Returns
Type | Description |
---|---|
System.String |
Remove(KeyValuePair<String, Object>)
Removes the entry from the configuration instance.
Declaration
public void Remove(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.KeyValuePair<System.String, System.Object> | item |
Remove(String)
Removes the entry from the configuration instance.
Declaration
public void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
SetAmbientConfiguration(DataConnectionConfigurationBase, DataConnectionConfigurationBase, DataConnectionConfigurationBase, DataConnectionConfigurationBase)
Declaration
public void SetAmbientConfiguration(DataConnectionConfigurationBase globalProperties, DataConnectionConfigurationBase shardSetProperties, DataConnectionConfigurationBase readWriteProperties, DataConnectionConfigurationBase shardProperties)
Parameters
Type | Name | Description |
---|---|---|
DataConnectionConfigurationBase | globalProperties | |
DataConnectionConfigurationBase | shardSetProperties | |
DataConnectionConfigurationBase | readWriteProperties | |
DataConnectionConfigurationBase | shardProperties |
TryGetValue(String, out Object)
Declaration
public bool TryGetValue(string key, out object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.Object | value |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.ComponentModel.INotifyPropertyChanged