Class SqlConnectionConfiguration
This class represents a single database connection — a database connection or a shard instance read or write connection.
Inheritance
System.Object
SqlConnectionConfiguration
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.Sql
Assembly: ArgentSea.Sql.dll
Syntax
public class SqlConnectionConfiguration : SqlConnectionPropertiesBase, INotifyPropertyChanged, IDataConnection
Constructors
| Improve this Doc View SourceSqlConnectionConfiguration()
Declaration
public SqlConnectionConfiguration()
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 |
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