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