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