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