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