Show / Hide Table of Contents

Class PriceListRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PriceListTableInfo>)

From a TargetedDataRecord<PriceListTableInfo>, create and populate a PriceListRecordData POCO object

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

FromSelect(TargetedSelect<PriceListTableInfo>)

From a TargetedSelect<PriceListTableInfo>, execute it and return an IEnumerable<PriceListRecordData> with the results

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

FromSelectAsync(TargetedSelect<PriceListTableInfo>, CancellationToken)

From a TargetedSelect<PriceListTableInfo>, execute it and return an IEnumerable<PriceListRecordData> with the results

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

ToInsertAsync(PriceListRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PriceListRecordData>, CancellationToken)

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

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

ToRecordData(PriceListRow)

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

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