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