Show / Hide Table of Contents

Class ReplyTemplateRecordDataExtensions

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

Inheritance
object
ReplyTemplateRecordDataExtensions
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 ReplyTemplateRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ReplyTemplateTableInfo>)

From a TargetedDataRecord<ReplyTemplateTableInfo>, create and populate a ReplyTemplateRecordData POCO object

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

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

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