Search Results for

    Show / Hide Table of Contents

    Class DatabaseOptionsBuilder<TDatabase>

    Provides an option builder to further dynamically configure a Database instance.

    Inheritance
    Object
    DatabaseOptionsBuilder
    DatabaseOptionsBuilder<TDatabase>
    Inherited Members
    DatabaseOptionsBuilder.DefaultLoggingBehavior
    DatabaseOptionsBuilder.ConnectionString
    Namespace: Venflow
    Assembly: Venflow.dll
    Syntax
    public class DatabaseOptionsBuilder<TDatabase> : DatabaseOptionsBuilder where TDatabase : Database
    Type Parameters
    Name Description
    TDatabase

    Methods

    | Improve this Doc View Source

    LogTo(Action<String>, Boolean)

    Adds a logger, which allows for logging of executed commands.

    Declaration
    public DatabaseOptionsBuilder<TDatabase> LogTo(Action<string> loggerCallback, bool logSensitveData = false)
    Parameters
    Type Name Description
    Action<String> loggerCallback

    A callback which is being used to log commands.

    Boolean logSensitveData

    Determines whether or not to log parameterized commands.

    Returns
    Type Description
    DatabaseOptionsBuilder<TDatabase>

    An object that can be used to configure the current Database instance.

    Remarks

    Also consider configuring the DatabaseOptionsBuilder.DefaultLoggingBehavior property. Be aware that this method should be used in cases which require quick logging. This API wraps the loggerCallback again and calls LogTo(LoggerCallback).

    | Improve this Doc View Source

    LogTo(LoggerCallback)

    Adds a logger, which allows for logging of executed commands.

    Declaration
    public DatabaseOptionsBuilder<TDatabase> LogTo(LoggerCallback loggerCallback)
    Parameters
    Type Name Description
    LoggerCallback loggerCallback

    A callback which is being used to log commands.

    Returns
    Type Description
    DatabaseOptionsBuilder<TDatabase>

    An object that can be used to configure the current Database instance.

    Remarks

    Also consider configuring the DatabaseOptionsBuilder.DefaultLoggingBehavior property.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty