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