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