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