Show / Hide Table of Contents

    Class ConnectionStringFactory

    The connection string factory.

    Inheritance
    System.Object
    ConnectionStringFactory
    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: Bayat.SaveSystem.Storage
    Assembly: Bayat.SaveSystem.Runtime.dll
    Syntax
    public static class ConnectionStringFactory

    Methods

    | Improve this Doc View Source

    CreateStorage(String)

    Creates a new instance of IStorage implementation using the connection string.

    Declaration
    public static IStorage CreateStorage(string connectionString)
    Parameters
    Type Name Description
    System.String connectionString

    The connection string

    Returns
    Type Description
    IStorage

    A new instance of IStorage implementation if possible otherwise null

    | Improve this Doc View Source

    GetConnectionFactories()

    Retrieves all connection factories using reflection.

    Declaration
    public static List<IConnectionFactory> GetConnectionFactories()
    Returns
    Type Description
    System.Collections.Generic.List<IConnectionFactory>
    | Improve this Doc View Source

    Register(IConnectionFactory)

    Registers a new connection string factory.

    Declaration
    public static void Register(IConnectionFactory factory)
    Parameters
    Type Name Description
    IConnectionFactory factory

    The connection string factory

    • Improve this Doc
    • View Source
    • 0 Comments