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