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