Class MsSqlOneColumnService
- Namespace
- SunamoMsSqlServer.Services
- Assembly
- SunamoMsSqlServer.dll
Service for reading single-column data from MS SQL Server tables.
public class MsSqlOneColumnService
- Inheritance
-
MsSqlOneColumnService
- Inherited Members
- Extension Methods
Constructors
MsSqlOneColumnService(MsSqlService)
Service for reading single-column data from MS SQL Server tables.
public MsSqlOneColumnService(MsSqlService msSqlService)
Parameters
msSqlServiceMsSqlServiceThe underlying MS SQL service for connection management.
Methods
Int(string, string)
Reads all integer values from a single column of the specified table.
public Task<ResultWithExceptionMsSqlServer<List<int>>> Int(string tableName, string columnName)
Parameters
tableNamestringThe name of the database table to read from.
columnNamestringThe name of the column containing integer values.
Returns
- Task<ResultWithExceptionMsSqlServer<List<int>>>
A result containing the list of integers or an exception message.