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