Class EjselResultSetRecordDataExtensions
Extension methods to make it easy to fetch EjselResultSetRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
EjselResultSetRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class EjselResultSetRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<EjselResultSetTableInfo>)
Declaration
public static EjselResultSetRecordData FromRecord(this TargetedDataRecord<EjselResultSetTableInfo> record)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { EjselResultSetItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<EjselResultSetTableInfo>)
From a TargetedSelect<EjselResultSetTableInfo>, execute it and return an IEnumerable<EjselResultSetRecordData> with the results
Declaration
public static IEnumerable<EjselResultSetRecordData> FromSelect(this TargetedSelect<EjselResultSetTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(EjselResultSetRecordData)
Extension methods to make it easy to fetch EjselResultSetRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this EjselResultSetRecordData record)
Parameters
Returns
ToInserts(IEnumerable<EjselResultSetRecordData>)
Extension methods to make it easy to fetch EjselResultSetRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<EjselResultSetRecordData> records)
Parameters
Returns
ToRecordData(EjselResultSetRow)
Extension methods to make it easy to fetch EjselResultSetRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static EjselResultSetRecordData ToRecordData(this EjselResultSetRow row)
Parameters
Returns