Search Results for

    Show / Hide Table of Contents

    Class DbConnectionStringPool

    Inheritance
    System.Object
    DbConnectionStringPool
    Implements
    IObjectPool<System.Data.Common.DbConnection>
    System.IDisposable
    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: FreeSql.Internal.CommonProvider
    Assembly: FreeSql.dll
    Syntax
    public class DbConnectionStringPool : IObjectPool<DbConnection>, IDisposable

    Constructors

    | Improve this Doc View Source

    DbConnectionStringPool(DataType, String, Func<DbConnection>)

    Declaration
    public DbConnectionStringPool(DataType dataType, string name, Func<DbConnection> connectionFactory)
    Parameters
    Type Name Description
    DataType dataType
    System.String name
    System.Func<System.Data.Common.DbConnection> connectionFactory

    Properties

    | Improve this Doc View Source

    IsAvailable

    Declaration
    public bool IsAvailable { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Policy

    Declaration
    public IPolicy<DbConnection> Policy { get; }
    Property Value
    Type Description
    IPolicy<System.Data.Common.DbConnection>
    | Improve this Doc View Source

    Statistics

    Declaration
    public string Statistics { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    StatisticsFullily

    Declaration
    public string StatisticsFullily { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    UnavailableException

    Declaration
    public Exception UnavailableException { get; }
    Property Value
    Type Description
    System.Exception
    | Improve this Doc View Source

    UnavailableTime

    Declaration
    public DateTime? UnavailableTime { get; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    Methods

    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Get(Nullable<TimeSpan>)

    Declaration
    public Object<DbConnection> Get(TimeSpan? timeout = null)
    Parameters
    Type Name Description
    System.Nullable<System.TimeSpan> timeout
    Returns
    Type Description
    Object<System.Data.Common.DbConnection>
    | Improve this Doc View Source

    GetAsync()

    Declaration
    public async Task<Object<DbConnection>> GetAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<Object<System.Data.Common.DbConnection>>
    | Improve this Doc View Source

    Return(Object<DbConnection>, Boolean)

    Declaration
    public void Return(Object<DbConnection> obj, bool isReset = false)
    Parameters
    Type Name Description
    Object<System.Data.Common.DbConnection> obj
    System.Boolean isReset
    | Improve this Doc View Source

    SetUnavailable(Exception, DateTime)

    Declaration
    public bool SetUnavailable(Exception exception, DateTime lastGetTime)
    Parameters
    Type Name Description
    System.Exception exception
    System.DateTime lastGetTime
    Returns
    Type Description
    System.Boolean

    Implements

    IObjectPool<T>
    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX