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