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