Table of Contents

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

msSqlService MsSqlService

The 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

tableName string

The name of the database table to read from.

columnName string

The name of the column containing integer values.

Returns

Task<ResultWithExceptionMsSqlServer<List<int>>>

A result containing the list of integers or an exception message.