Show / Hide Table of Contents

Class QuoteVersionAttachmentRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<QuoteVersionAttachmentTableInfo>)

From a TargetedDataRecord<QuoteVersionAttachmentTableInfo>, create and populate a QuoteVersionAttachmentRecordData POCO object

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

FromSelect(TargetedSelect<QuoteVersionAttachmentTableInfo>)

From a TargetedSelect<QuoteVersionAttachmentTableInfo>, execute it and return an IEnumerable<QuoteVersionAttachmentRecordData> with the results

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

FromSelectAsync(TargetedSelect<QuoteVersionAttachmentTableInfo>, CancellationToken)

From a TargetedSelect<QuoteVersionAttachmentTableInfo>, execute it and return an IEnumerable<QuoteVersionAttachmentRecordData> with the results

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

ToInsertAsync(QuoteVersionAttachmentRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<QuoteVersionAttachmentRecordData>, CancellationToken)

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

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

ToRecordData(QuoteVersionAttachmentRow)

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

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