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