Interface IDatabaseInfoManager
Factory for creating new DatabaseInfos.
Namespace: LemonEdge.DataAccess.Core.Abstractions.Factories
Assembly: LemonEdge.DataAccess.Core.Abstractions.dll
Syntax
public interface IDatabaseInfoManager
Properties
DatabaseName
Returns the name of the DB, or throws if there is no underlying DbInfo.
Declaration
string DatabaseName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Create(string)
Creates a new DatabaseInfo.
Declaration
IDatabaseInfo Create(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
string | connectionString | The connection string. |
Returns
Type | Description |
---|---|
IDatabaseInfo |
GetConnectedDatabase(IPAddress)
Returns the connected database, from the settings file.
Declaration
Task<IDatabaseInfo> GetConnectedDatabase(IPAddress forIpAddress = null)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | forIpAddress | The IP Address |
Returns
Type | Description |
---|---|
Task<IDatabaseInfo> |
IsValid(IPAddress)
Determines whether the provided IP has been whitelisted, in the settings file.
Declaration
bool IsValid(IPAddress ipAddress)
Parameters
Type | Name | Description |
---|---|---|
IPAddress | ipAddress | The IP Address |
Returns
Type | Description |
---|---|
bool |