Class QuickReplyRecordDataExtensions
Extension methods to make it easy to fetch QuickReplyRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
QuickReplyRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class QuickReplyRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<QuickReplyTableInfo>)
From a TargetedDataRecord<QuickReplyTableInfo>, create and populate a QuickReplyRecordData POCO object
Declaration
public static QuickReplyRecordData FromRecord(this TargetedDataRecord<QuickReplyTableInfo> 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 { QuickReplyItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<QuickReplyTableInfo>)
From a TargetedSelect<QuickReplyTableInfo>, execute it and return an IEnumerable<QuickReplyRecordData> with the results
Declaration
public static IEnumerable<QuickReplyRecordData> FromSelect(this TargetedSelect<QuickReplyTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<QuickReplyTableInfo>, CancellationToken)
From a TargetedSelect<QuickReplyTableInfo>, execute it and return an IEnumerable<QuickReplyRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<QuickReplyRecordData> FromSelectAsync(this TargetedSelect<QuickReplyTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(QuickReplyRecordData, CancellationToken)
Extension methods to make it easy to fetch QuickReplyRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this QuickReplyRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<QuickReplyRecordData>, CancellationToken)
Extension methods to make it easy to fetch QuickReplyRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<QuickReplyRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(QuickReplyRow)
Extension methods to make it easy to fetch QuickReplyRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static QuickReplyRecordData ToRecordData(this QuickReplyRow row)
Parameters
Returns