Class EmailAccountRecordDataExtensions
Extension methods to make it easy to fetch EmailAccountRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
EmailAccountRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class EmailAccountRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<EmailAccountTableInfo>)
Declaration
public static EmailAccountRecordData FromRecord(this TargetedDataRecord<EmailAccountTableInfo> 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 { EmailAccountItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<EmailAccountTableInfo>)
From a TargetedSelect<EmailAccountTableInfo>, execute it and return an IEnumerable<EmailAccountRecordData> with the results
Declaration
public static IEnumerable<EmailAccountRecordData> FromSelect(this TargetedSelect<EmailAccountTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<EmailAccountTableInfo>, CancellationToken)
From a TargetedSelect<EmailAccountTableInfo>, execute it and return an IEnumerable<EmailAccountRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<EmailAccountRecordData> FromSelectAsync(this TargetedSelect<EmailAccountTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(EmailAccountRecordData, CancellationToken)
Extension methods to make it easy to fetch EmailAccountRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this EmailAccountRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<EmailAccountRecordData>, CancellationToken)
Extension methods to make it easy to fetch EmailAccountRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<EmailAccountRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(EmailAccountRow)
Extension methods to make it easy to fetch EmailAccountRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static EmailAccountRecordData ToRecordData(this EmailAccountRow row)
Parameters
Returns