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