Show / Hide Table of Contents

Class ExtAppRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ExtAppTableInfo>)

From a TargetedDataRecord<ExtAppTableInfo>, create and populate a ExtAppRecordData POCO object

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

FromSelect(TargetedSelect<ExtAppTableInfo>)

From a TargetedSelect<ExtAppTableInfo>, execute it and return an IEnumerable<ExtAppRecordData> with the results

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

FromSelectAsync(TargetedSelect<ExtAppTableInfo>, CancellationToken)

From a TargetedSelect<ExtAppTableInfo>, execute it and return an IEnumerable<ExtAppRecordData> with the results

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

ToInsertAsync(ExtAppRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ExtAppRecordData>, CancellationToken)

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

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

ToRecordData(ExtAppRow)

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

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