Show / Hide Table of Contents

Class QuoteApprReasonRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteApprReasonTableInfo>)

From a TargetedDataRecord<QuoteApprReasonTableInfo>, create and populate a QuoteApprReasonRecordData POCO object

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

FromSelect(TargetedSelect<QuoteApprReasonTableInfo>)

From a TargetedSelect<QuoteApprReasonTableInfo>, execute it and return an IEnumerable<QuoteApprReasonRecordData> with the results

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

FromSelectAsync(TargetedSelect<QuoteApprReasonTableInfo>, CancellationToken)

From a TargetedSelect<QuoteApprReasonTableInfo>, execute it and return an IEnumerable<QuoteApprReasonRecordData> with the results

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

ToInsertAsync(QuoteApprReasonRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<QuoteApprReasonRecordData>, CancellationToken)

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

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

ToRecordData(QuoteApprReasonRow)

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

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