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