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