Search Results for

    Show / Hide Table of Contents

    Interface IWritable<T>

    This interface provides a minimalistic generic approach to write generic data to any kind of (persistent) data sink.

    Namespace: TeleScope.Persistence.Abstractions
    Assembly: TeleScope.Persistence.Abstractions.dll
    Syntax
    public interface IWritable<in T>
    Type Parameters
    Name Description
    T

    The type that is given on the application side.

    Properties

    | Improve this Doc View Source

    Permissions

    Gets the flags of permissions how files may be treated.

    Declaration
    WritePermissions Permissions { get; }
    Property Value
    Type Description
    WritePermissions

    Methods

    | Improve this Doc View Source

    HasPermission(WritePermissions)

    Shall check, if the implementation has the permission handed over as parameter.

    Declaration
    bool HasPermission(WritePermissions permission)
    Parameters
    Type Name Description
    WritePermissions permission

    The permission that will be testet.

    Returns
    Type Description
    System.Boolean

    True if the permission flags are present, otherwise false.

    | Improve this Doc View Source

    Write(IEnumerable<T>)

    Writes a collection of type T to a given data sink. If there is only one data object there is the need to provide a collection with one element.

    Declaration
    void Write(IEnumerable<T> data)
    Parameters
    Type Name Description
    IEnumerable<T> data

    The application-side data collection of type T.

    Extension Methods

    IWritableExtensions.ValidateOrThrow<T>(IWritable<T>, IEnumerable<T>, FileInfo)
    • GITHUB
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    Copyright 2020-2022 TeleScope-dotnet. Generated by DocFX.
    ☀
    ☾