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