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