Show / Hide Table of Contents

Class ExtTableRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ExtTableTableInfo>)

From a TargetedDataRecord<ExtTableTableInfo>, create and populate a ExtTableRecordData POCO object

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

FromSelect(TargetedSelect<ExtTableTableInfo>)

From a TargetedSelect<ExtTableTableInfo>, execute it and return an IEnumerable<ExtTableRecordData> with the results

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

FromSelectAsync(TargetedSelect<ExtTableTableInfo>, CancellationToken)

From a TargetedSelect<ExtTableTableInfo>, execute it and return an IEnumerable<ExtTableRecordData> with the results

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

ToInsertAsync(ExtTableRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ExtTableRecordData>, CancellationToken)

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

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

ToRecordData(ExtTableRow)

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

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