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