Show / Hide Table of Contents

Class TabOrderRecordDataExtensions

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

Inheritance
object
TabOrderRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class TabOrderRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TabOrderTableInfo>)

From a TargetedDataRecord<TabOrderTableInfo>, create and populate a TabOrderRecordData POCO object

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

FromSelect(TargetedSelect<TabOrderTableInfo>)

From a TargetedSelect<TabOrderTableInfo>, execute it and return an IEnumerable<TabOrderRecordData> with the results

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

FromSelectAsync(TargetedSelect<TabOrderTableInfo>, CancellationToken)

From a TargetedSelect<TabOrderTableInfo>, execute it and return an IEnumerable<TabOrderRecordData> with the results

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

ToInsertAsync(TabOrderRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<TabOrderRecordData>, CancellationToken)

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

ToRecordData(TabOrderRow)

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