Show / Hide Table of Contents

Class QuoteDenyReasonRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteDenyReasonTableInfo>)

From a TargetedDataRecord<QuoteDenyReasonTableInfo>, create and populate a QuoteDenyReasonRecordData POCO object

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

FromSelect(TargetedSelect<QuoteDenyReasonTableInfo>)

From a TargetedSelect<QuoteDenyReasonTableInfo>, execute it and return an IEnumerable<QuoteDenyReasonRecordData> with the results

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

FromSelectAsync(TargetedSelect<QuoteDenyReasonTableInfo>, CancellationToken)

From a TargetedSelect<QuoteDenyReasonTableInfo>, execute it and return an IEnumerable<QuoteDenyReasonRecordData> with the results

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

ToInsertAsync(QuoteDenyReasonRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<QuoteDenyReasonRecordData>, CancellationToken)

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

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

ToRecordData(QuoteDenyReasonRow)

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

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