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