Show / Hide Table of Contents

Class QuoteVersionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteVersionTableInfo>)

From a TargetedDataRecord<QuoteVersionTableInfo>, create and populate a QuoteVersionRecordData POCO object

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

FromSelect(TargetedSelect<QuoteVersionTableInfo>)

From a TargetedSelect<QuoteVersionTableInfo>, execute it and return an IEnumerable<QuoteVersionRecordData> with the results

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

FromSelectAsync(TargetedSelect<QuoteVersionTableInfo>, CancellationToken)

From a TargetedSelect<QuoteVersionTableInfo>, execute it and return an IEnumerable<QuoteVersionRecordData> with the results

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

ToInsertAsync(QuoteVersionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<QuoteVersionRecordData>, CancellationToken)

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

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

ToRecordData(QuoteVersionRow)

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

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