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