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