Class SQLWrapperResultRow
A class used to return access the results of an individual sql wrapper result row
Implements
Inherited Members
Namespace: LemonEdge.API.Entities.Helpers
Assembly: LemonEdge.API.dll
Syntax
public class SQLWrapperResultRow : IConvertableViewItem
Constructors
SQLWrapperResultRow(SQLWrapperInterpretor, ISQLWrapperResult)
Creates a new sql wrapper result row
Declaration
public SQLWrapperResultRow(SQLWrapperInterpretor interprator, ISQLWrapperResult row)
Parameters
Type | Name | Description |
---|---|---|
SQLWrapperInterpretor | interprator | The interpator for retrieving values from the specified result row |
ISQLWrapperResult | row | The row to return values for |
Methods
CanConvertToType(Type)
Declaration
public bool CanConvertToType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
bool |
Convert(IEntityRetriever, Type)
Declaration
public Task<object> Convert(IEntityRetriever context, Type toType)
Parameters
Type | Name | Description |
---|---|---|
IEntityRetriever | context | |
Type | toType |
Returns
Type | Description |
---|---|
Task<object> |
GetValue(string)
Returns the value of the specified column from the sql result row
Declaration
public object GetValue(string columnName)
Parameters
Type | Name | Description |
---|---|---|
string | columnName | The name of the column to return the value of from the current sql wrapper result row |
Returns
Type | Description |
---|---|
object | The value of the specified column from the sql result row |