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