Show / Hide Table of Contents

Class UDSaleSmallRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDSaleSmallTableInfo>)

From a TargetedDataRecord<UDSaleSmallTableInfo>, create and populate a UDSaleSmallRecordData POCO object

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

FromSelect(TargetedSelect<UDSaleSmallTableInfo>)

From a TargetedSelect<UDSaleSmallTableInfo>, execute it and return an IEnumerable<UDSaleSmallRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDSaleSmallTableInfo>, CancellationToken)

From a TargetedSelect<UDSaleSmallTableInfo>, execute it and return an IEnumerable<UDSaleSmallRecordData> with the results

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

ToInsertAsync(UDSaleSmallRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDSaleSmallRecordData>, CancellationToken)

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

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

ToRecordData(UDSaleSmallRow)

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

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