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