Interface IDataService
Provides connection strings for direct database access.
Namespace: DirectScale.Disco.Extension.Services
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public interface IDataService
Methods
GetClientConnectionString()
A read write connection string that can only access client tables.
Declaration
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
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.