Search Results for

    Show / Hide Table of Contents

    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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.