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