Class SListRecordDataExtensions
Extension methods to make it easy to fetch SListRecordData objects from the database,
using the infrastructure
Inheritance
SListRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class SListRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<SListTableInfo>)
From a TargetedDataRecord<SListTableInfo>, create and populate a SListRecordData POCO object
Declaration
public static SListRecordData FromRecord(this TargetedDataRecord<SListTableInfo> 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 { SListItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<SListTableInfo>)
From a TargetedSelect<SListTableInfo>, execute it and return an IEnumerable<SListRecordData> with the results
Declaration
public static IEnumerable<SListRecordData> FromSelect(this TargetedSelect<SListTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(SListRecordData)
Extension methods to make it easy to fetch SListRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this SListRecordData record)
Parameters
Returns
ToInserts(IEnumerable<SListRecordData>)
Extension methods to make it easy to fetch SListRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<SListRecordData> records)
Parameters
Returns
ToRecordData(SListRow)
Extension methods to make it easy to fetch SListRecordData objects from the database,
using the infrastructure
Declaration
public static SListRecordData ToRecordData(this SListRow row)
Parameters
Returns