Show / Hide Table of Contents

Class TrayAppRecordDataExtensions

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

Inheritance
object
TrayAppRecordDataExtensions
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 TrayAppRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TrayAppTableInfo>)

From a TargetedDataRecord<TrayAppTableInfo>, create and populate a TrayAppRecordData POCO object

Declaration
public static TrayAppRecordData FromRecord(this TargetedDataRecord<TrayAppTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TrayAppTableInfo> record
Returns
Type Description
TrayAppRecordData
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 { TrayAppItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<TrayAppTableInfo>)

From a TargetedSelect<TrayAppTableInfo>, execute it and return an IEnumerable<TrayAppRecordData> with the results

Declaration
public static IEnumerable<TrayAppRecordData> FromSelect(this TargetedSelect<TrayAppTableInfo> select)
Parameters
Type Name Description
TargetedSelect<TrayAppTableInfo> select
Returns
Type Description
IEnumerable<TrayAppRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<TrayAppTableInfo>, CancellationToken)

From a TargetedSelect<TrayAppTableInfo>, execute it and return an IEnumerable<TrayAppRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<TrayAppRecordData> FromSelectAsync(this TargetedSelect<TrayAppTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<TrayAppTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<TrayAppRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(TrayAppRecordData, CancellationToken)

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

Declaration
public static Task<Insert> ToInsertAsync(this TrayAppRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TrayAppRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<TrayAppRecordData>, CancellationToken)

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

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<TrayAppRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<TrayAppRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(TrayAppRow)

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

Declaration
public static TrayAppRecordData ToRecordData(this TrayAppRow row)
Parameters
Type Name Description
TrayAppRow row
Returns
Type Description
TrayAppRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top