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