Show / Hide Table of Contents

Class UDListRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDListTableInfo>)

From a TargetedDataRecord<UDListTableInfo>, create and populate a UDListRecordData POCO object

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

FromSelect(TargetedSelect<UDListTableInfo>)

From a TargetedSelect<UDListTableInfo>, execute it and return an IEnumerable<UDListRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDListTableInfo>, CancellationToken)

From a TargetedSelect<UDListTableInfo>, execute it and return an IEnumerable<UDListRecordData> with the results

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

ToInsertAsync(UDListRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDListRecordData>, CancellationToken)

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

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

ToRecordData(UDListRow)

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

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