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