Show / Hide Table of Contents

Class InvoiceSumRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<InvoiceSumTableInfo>)

From a TargetedDataRecord<InvoiceSumTableInfo>, create and populate a InvoiceSumRecordData POCO object

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

FromSelect(TargetedSelect<InvoiceSumTableInfo>)

From a TargetedSelect<InvoiceSumTableInfo>, execute it and return an IEnumerable<InvoiceSumRecordData> with the results

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

FromSelectAsync(TargetedSelect<InvoiceSumTableInfo>, CancellationToken)

From a TargetedSelect<InvoiceSumTableInfo>, execute it and return an IEnumerable<InvoiceSumRecordData> with the results

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

ToInsertAsync(InvoiceSumRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<InvoiceSumRecordData>, CancellationToken)

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

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

ToRecordData(InvoiceSumRow)

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

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