DbConnectionPlus API Documentation
Search Results for

    Show / Hide Table of Contents

    Class TemporaryTableDisposer

    Handles the disposal of a temporary database table. When disposed, drops the temporary table.

    Inheritance
    object
    TemporaryTableDisposer
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RentADeveloper.DbConnectionPlus.DatabaseAdapters
    Assembly: RentADeveloper.DbConnectionPlus.dll
    Syntax
    public sealed class TemporaryTableDisposer : IDisposable, IAsyncDisposable

    Constructors

    View Source

    TemporaryTableDisposer(Action, Func<ValueTask>)

    Initializes a new instance of the TemporaryTableDisposer class.

    Declaration
    public TemporaryTableDisposer(Action dropTableFunction, Func<ValueTask> dropTableAsyncFunction)
    Parameters
    Type Name Description
    Action dropTableFunction

    The function that drops the table.

    Func<ValueTask> dropTableAsyncFunction

    The function that asynchronously drops the table.

    Exceptions
    Type Condition
    ArgumentNullException
    • dropTableFunction is null.
    • dropTableAsyncFunction is null.

    Methods

    View Source

    Dispose()

    Drops the temporary table.

    Declaration
    public void Dispose()
    View Source

    DisposeAsync()

    Asynchronously drops the temporary table.

    Declaration
    public ValueTask DisposeAsync()
    Returns
    Type Description
    ValueTask

    A task that represents the asynchronous operation.

    Implements

    IDisposable
    IAsyncDisposable
    • View Source
    In this article
    Back to top Generated by DocFX