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