Class AzureTableRepositoryConfig
May use directly, or use as a convenient base class for capturing config of a data model that spans multiple Azure Storage accounts. For example:
public class MainStorageRepositoryConfig : AzureTableRepositoryConfig
{
MainStorageRepositoryConfig(IConfiguration config) : base(config, "Main") { }
}
public class SecondaryStorageRepositoryConfig : AzureTableRepositoryConfig
{
MainStorageRepositoryConfig(IConfiguration config) : base(config, "Secondary") { }
}
Then your repositories can be differentiated by repository config, and the configuration properties themselves will be in separate sections, one under "Main:Azure:{stuff}" and one under "Secondary:Azure:{stuff}".
Inheritance
System.Object
AzureTableRepositoryConfig
Implements
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: Ease.Repository.AzureTable
Assembly: Ease.Repository.AzureTable.dll
Syntax
public class AzureTableRepositoryConfig : IAzureTableRepositoryConfig
Constructors
| Improve this Doc View SourceAzureTableRepositoryConfig(IConfiguration, String)
Initialize the config.
Declaration
public AzureTableRepositoryConfig(IConfiguration config, string configSectionPrefix = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Configuration.IConfiguration | config | The underlying config abstraction to fetch from. |
| System.String | configSectionPrefix | [optional] The prefix to add to the config keys during lookup (permits multiple config sections to coexist). |
Properties
| Improve this Doc View SourceConnectionString
Declaration
public virtual string ConnectionString { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TableNamePrefix
Declaration
public virtual string TableNamePrefix { get; }
Property Value
| Type | Description |
|---|---|
| System.String |