Class EmailItemRecordDataExtensions
Extension methods to make it easy to fetch EmailItemRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
EmailItemRecordDataExtensions
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
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 { 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
Returns
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
Returns
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
Returns
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
Returns
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
Returns