Show / Hide Table of Contents

Class EmailFlowRecordDataExtensions

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

Inheritance
object
EmailFlowRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class EmailFlowRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<EmailFlowTableInfo>)

From a TargetedDataRecord<EmailFlowTableInfo>, create and populate a EmailFlowRecordData POCO object

Declaration
public static EmailFlowRecordData FromRecord(this TargetedDataRecord<EmailFlowTableInfo> record)
Parameters
Type Name Description
TargetedDataRecordEmailFlowTableInfo record
Returns
Type Description
EmailFlowRecordData
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 { EmailFlowItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<EmailFlowTableInfo>)

From a TargetedSelect<EmailFlowTableInfo>, execute it and return an IEnumerable<EmailFlowRecordData> with the results

Declaration
public static IEnumerable<EmailFlowRecordData> FromSelect(this TargetedSelect<EmailFlowTableInfo> select)
Parameters
Type Name Description
TargetedSelectEmailFlowTableInfo select
Returns
Type Description
IEnumerableEmailFlowRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<EmailFlowTableInfo>, CancellationToken)

From a TargetedSelect<EmailFlowTableInfo>, execute it and return an IEnumerable<EmailFlowRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<EmailFlowRecordData> FromSelectAsync(this TargetedSelect<EmailFlowTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelectEmailFlowTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableEmailFlowRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(EmailFlowRecordData, CancellationToken)

Declaration
public static Task<Insert> ToInsertAsync(this EmailFlowRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
EmailFlowRecordData record
CancellationToken cancellationToken
Returns
Type Description
TaskInsert

ToInsertsAsync(IEnumerable<EmailFlowRecordData>, CancellationToken)

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<EmailFlowRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerableEmailFlowRecordData records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableInsert

ToRecordData(EmailFlowRow)

Declaration
public static EmailFlowRecordData ToRecordData(this EmailFlowRow row)
Parameters
Type Name Description
EmailFlowRow row
Returns
Type Description
EmailFlowRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top