Show / Hide Table of Contents

Class UDListDefinitionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDListDefinitionTableInfo>)

From a TargetedDataRecord<UDListDefinitionTableInfo>, create and populate a UDListDefinitionRecordData POCO object

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

FromSelect(TargetedSelect<UDListDefinitionTableInfo>)

From a TargetedSelect<UDListDefinitionTableInfo>, execute it and return an IEnumerable<UDListDefinitionRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDListDefinitionTableInfo>, CancellationToken)

From a TargetedSelect<UDListDefinitionTableInfo>, execute it and return an IEnumerable<UDListDefinitionRecordData> with the results

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

ToInsertAsync(UDListDefinitionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDListDefinitionRecordData>, CancellationToken)

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

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

ToRecordData(UDListDefinitionRow)

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

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