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