Class InboxRecordDataExtensions
Extension methods to make it easy to fetch InboxRecordData objects from the database,
using the infrastructure
Inheritance
System.Object
InboxRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class InboxRecordDataExtensions : Object
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)
Declaration
public static Insert ToInsert(this InboxRecordData record)
Parameters
Returns
ToInserts(IEnumerable<InboxRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<InboxRecordData> records)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<InboxRecordData> |
records |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Insert> |
|
ToRecordData(InboxRow)
Declaration
public static InboxRecordData ToRecordData(this InboxRow row)
Parameters
Returns