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