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