Show / Hide Table of Contents

Class ReplyTemplateBodyRecordDataExtensions

Extension methods to make it easy to fetch ReplyTemplateBodyRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
ReplyTemplateBodyRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class ReplyTemplateBodyRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ReplyTemplateBodyTableInfo>)

From a TargetedDataRecord<ReplyTemplateBodyTableInfo>, create and populate a ReplyTemplateBodyRecordData POCO object

Declaration
public static ReplyTemplateBodyRecordData FromRecord(this TargetedDataRecord<ReplyTemplateBodyTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<ReplyTemplateBodyTableInfo> record
Returns
Type Description
ReplyTemplateBodyRecordData
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
Type Name Description
TargetedSelect<ReplyTemplateBodyTableInfo> select
Returns
Type Description
IEnumerable<ReplyTemplateBodyRecordData>
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
Type Name Description
TargetedSelect<ReplyTemplateBodyTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<ReplyTemplateBodyRecordData>
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
Type Name Description
ReplyTemplateBodyRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<ReplyTemplateBodyRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
ReplyTemplateBodyRow row
Returns
Type Description
ReplyTemplateBodyRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top