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