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