Show / Hide Table of Contents

Class QuoteLineConfigurationRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteLineConfigurationTableInfo>)

From a TargetedDataRecord<QuoteLineConfigurationTableInfo>, create and populate a QuoteLineConfigurationRecordData POCO object

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

FromSelect(TargetedSelect<QuoteLineConfigurationTableInfo>)

From a TargetedSelect<QuoteLineConfigurationTableInfo>, execute it and return an IEnumerable<QuoteLineConfigurationRecordData> with the results

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

FromSelectAsync(TargetedSelect<QuoteLineConfigurationTableInfo>, CancellationToken)

From a TargetedSelect<QuoteLineConfigurationTableInfo>, execute it and return an IEnumerable<QuoteLineConfigurationRecordData> with the results

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

ToInsertAsync(QuoteLineConfigurationRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<QuoteLineConfigurationRecordData>, CancellationToken)

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

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

ToRecordData(QuoteLineConfigurationRow)

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

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