Show / Hide Table of Contents

Class WinPosSizeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<WinPosSizeTableInfo>)

From a TargetedDataRecord<WinPosSizeTableInfo>, create and populate a WinPosSizeRecordData POCO object

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

FromSelect(TargetedSelect<WinPosSizeTableInfo>)

From a TargetedSelect<WinPosSizeTableInfo>, execute it and return an IEnumerable<WinPosSizeRecordData> with the results

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

FromSelectAsync(TargetedSelect<WinPosSizeTableInfo>, CancellationToken)

From a TargetedSelect<WinPosSizeTableInfo>, execute it and return an IEnumerable<WinPosSizeRecordData> with the results

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

ToInsertAsync(WinPosSizeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<WinPosSizeRecordData>, CancellationToken)

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

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

ToRecordData(WinPosSizeRow)

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

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