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