Show / Hide Table of Contents

Class TreeExplorerEntryRecordDataExtensions

Extension methods to make it easy to fetch TreeExplorerEntryRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
TreeExplorerEntryRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class TreeExplorerEntryRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TreeExplorerEntryTableInfo>)

From a TargetedDataRecord<TreeExplorerEntryTableInfo>, create and populate a TreeExplorerEntryRecordData POCO object

Declaration
public static TreeExplorerEntryRecordData FromRecord(this TargetedDataRecord<TreeExplorerEntryTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TreeExplorerEntryTableInfo> record
Returns
Type Description
TreeExplorerEntryRecordData
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
Type Name Description
TargetedSelect<TreeExplorerEntryTableInfo> select
Returns
Type Description
IEnumerable<TreeExplorerEntryRecordData>
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
Type Name Description
TargetedSelect<TreeExplorerEntryTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<TreeExplorerEntryRecordData>
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
Type Name Description
TreeExplorerEntryRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<TreeExplorerEntryRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
TreeExplorerEntryRow row
Returns
Type Description
TreeExplorerEntryRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top