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