Show / Hide Table of Contents

Class ProductVersionRecordDataExtensions

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

Inheritance
object
ProductVersionRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class ProductVersionRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ProductVersionTableInfo>)

From a TargetedDataRecord<ProductVersionTableInfo>, create and populate a ProductVersionRecordData POCO object

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

FromSelect(TargetedSelect<ProductVersionTableInfo>)

From a TargetedSelect<ProductVersionTableInfo>, execute it and return an IEnumerable<ProductVersionRecordData> with the results

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

FromSelectAsync(TargetedSelect<ProductVersionTableInfo>, CancellationToken)

From a TargetedSelect<ProductVersionTableInfo>, execute it and return an IEnumerable<ProductVersionRecordData> with the results

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

ToInsertAsync(ProductVersionRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<ProductVersionRecordData>, CancellationToken)

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

ToRecordData(ProductVersionRow)

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