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