Show / Hide Table of Contents

    IDataIncludeGetter<TModel> Interface

    .NET Standard 2.x

    Provides a series of methods needed after calling the IDataUnpacker.GetModel method or the IDataUnpacker.GetModels method. These methods can be used to get a TModel object or a collection of TModel objects, or continue to get data of embedded properties of TModel object from the IDataUnpacker object.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

    public interface IDataIncludeGetter<TModel>
    

    Method

    Name Return Type Description
    FirstOrDefault() TModel Creates a TModel object which contains the first row of data from the IDataUnpacker object. Returns null if there is no data.
    Include(string name, Expression<Func<TModel, TKey>> property) IDataIncludeGetter<TModel> Gets the data of an embedded property of the TModel object from the IDataUnpacker object.
    IncludeAll() IDataIncludeGetter<TModel> Gets the data of all embedded properties of the TModel object from the IDataUnpacker object.
    ToList() IList<TModel> Creates an IList <TModel> object which contains the data from the IDataUnpacker object.

    See Also

    IDataUnpacker.GetModel

    IDataUnpacker.GetModels

    Back to top Generated by Appeon