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