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