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