Show / Hide Table of Contents

Class UDSaleLargeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDSaleLargeTableInfo>)

From a TargetedDataRecord<UDSaleLargeTableInfo>, create and populate a UDSaleLargeRecordData POCO object

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

FromSelect(TargetedSelect<UDSaleLargeTableInfo>)

From a TargetedSelect<UDSaleLargeTableInfo>, execute it and return an IEnumerable<UDSaleLargeRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDSaleLargeTableInfo>, CancellationToken)

From a TargetedSelect<UDSaleLargeTableInfo>, execute it and return an IEnumerable<UDSaleLargeRecordData> with the results

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

ToInsertAsync(UDSaleLargeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDSaleLargeRecordData>, CancellationToken)

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

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

ToRecordData(UDSaleLargeRow)

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

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