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();
FromSelectAsync(TargetedSelect<InboxTableInfo>, CancellationToken)
From a TargetedSelect<InboxTableInfo>, execute it and return an IEnumerable<InboxRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<InboxRecordData> FromSelectAsync(this TargetedSelect<InboxTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(InboxRecordData, CancellationToken)
Extension methods to make it easy to fetch InboxRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this InboxRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<InboxRecordData>, CancellationToken)
Extension methods to make it easy to fetch InboxRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<InboxRecordData> records, CancellationToken cancellationToken = default)
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