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