Show / Hide Table of Contents

Class PersPosRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PersPosTableInfo>)

From a TargetedDataRecord<PersPosTableInfo>, create and populate a PersPosRecordData POCO object

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

FromSelect(TargetedSelect<PersPosTableInfo>)

From a TargetedSelect<PersPosTableInfo>, execute it and return an IEnumerable<PersPosRecordData> with the results

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

FromSelectAsync(TargetedSelect<PersPosTableInfo>, CancellationToken)

From a TargetedSelect<PersPosTableInfo>, execute it and return an IEnumerable<PersPosRecordData> with the results

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

ToInsertAsync(PersPosRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PersPosRecordData>, CancellationToken)

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

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

ToRecordData(PersPosRow)

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

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