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