Show / Hide Table of Contents

Class EmailItemRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<EmailItemTableInfo>)

From a TargetedDataRecord<EmailItemTableInfo>, create and populate a EmailItemRecordData POCO object

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

FromSelect(TargetedSelect<EmailItemTableInfo>)

From a TargetedSelect<EmailItemTableInfo>, execute it and return an IEnumerable<EmailItemRecordData> with the results

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

FromSelectAsync(TargetedSelect<EmailItemTableInfo>, CancellationToken)

From a TargetedSelect<EmailItemTableInfo>, execute it and return an IEnumerable<EmailItemRecordData> with the results

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

ToInsertAsync(EmailItemRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<EmailItemRecordData>, CancellationToken)

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

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

ToRecordData(EmailItemRow)

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

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