Search Results for

    Show / Hide Table of Contents

    Class DataService

    Inheritance
    System.Object
    DataService
    Implements
    IDataService
    Namespace: DirectScale.Disco.Extension.Services
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class DataService : Object, IDataService

    Constructors

    DataService(IApiService)

    Declaration
    public DataService(IApiService apiService)
    Parameters
    Type Name Description
    IApiService apiService

    Methods

    GetClientConnectionString()

    A read write connection string that can only access client tables.

    Declaration
    public Task<string> GetClientConnectionString()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>

    GetConnectionString()

    A read only connection string for accessing product and client tables.

    Declaration
    public Task<string> GetConnectionString()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>
    Remarks

    This is usually a replicated database and shouldn't be expected to immediately update. For example, don't create a new db record, then immediately read it, and expect it to exist. Use services to get the most up to date data or to change data.

    Implements

    IDataService
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX