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