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