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