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