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