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