Show / Hide Table of Contents

Class InvoiceEntryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<InvoiceEntryTableInfo>)

From a TargetedDataRecord<InvoiceEntryTableInfo>, create and populate a InvoiceEntryRecordData POCO object

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

FromSelect(TargetedSelect<InvoiceEntryTableInfo>)

From a TargetedSelect<InvoiceEntryTableInfo>, execute it and return an IEnumerable<InvoiceEntryRecordData> with the results

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

FromSelectAsync(TargetedSelect<InvoiceEntryTableInfo>, CancellationToken)

From a TargetedSelect<InvoiceEntryTableInfo>, execute it and return an IEnumerable<InvoiceEntryRecordData> with the results

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

ToInsertAsync(InvoiceEntryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<InvoiceEntryRecordData>, CancellationToken)

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

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

ToRecordData(InvoiceEntryRow)

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

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