DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ListStore

    Inheritance
    object
    ListStore
    Implements
    IListStore
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Data.SqlServer
    Assembly: DataWeb.Data.SqlServer.dll
    Syntax
    public class ListStore : IListStore

    Constructors

    ListStore(ISqlHelper, ICacheService)

    Declaration
    public ListStore(ISqlHelper sqlHelper, ICacheService cacheService)
    Parameters
    Type Name Description
    ISqlHelper sqlHelper
    ICacheService cacheService

    Properties

    Name

    Gets the name of the store implementation.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Methods

    GetListAsync(ListFilter, string, CancellationToken)

    Retrieves the first list matching the specified filter with localized item titles, or null if none is found.

    Declaration
    public Task<ListData> GetListAsync(ListFilter filter, string culture, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ListFilter filter

    The filter criteria used to query the list.

    string culture

    The culture code for list item localization (e.g., "en-US").

    CancellationToken cancellationToken

    A token to cancel the asynchronous operation.

    Returns
    Type Description
    Task<ListData>

    The first matching ListData, or null.

    GetListCachedAsync(string, string, CancellationToken)

    Retrieves a list by name with localized item titles, using the cache when available.

    Declaration
    public Task<ListData> GetListCachedAsync(string name, string culture, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string name

    The name of the list to retrieve.

    string culture

    The culture code for list item localization (e.g., "en-US").

    CancellationToken cancellationToken

    A token to cancel the asynchronous operation.

    Returns
    Type Description
    Task<ListData>

    The cached or freshly loaded ListData, or null if not found.

    GetListsAsync(ListFilter, string, CancellationToken)

    Retrieves a collection of lists matching the specified filter with localized item titles.

    Declaration
    public Task<IEnumerable<ListData>> GetListsAsync(ListFilter filter, string culture, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ListFilter filter

    The filter criteria used to query lists.

    string culture

    The culture code for list item localization (e.g., "en-US").

    CancellationToken cancellationToken

    A token to cancel the asynchronous operation.

    Returns
    Type Description
    Task<IEnumerable<ListData>>

    A collection of ListData matching the filter.

    Implements

    IListStore
    In this article
    Back to top Generated by DocFX