Show / Hide Table of Contents

Class UDPersonLargeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDPersonLargeTableInfo>)

From a TargetedDataRecord<UDPersonLargeTableInfo>, create and populate a UDPersonLargeRecordData POCO object

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

FromSelect(TargetedSelect<UDPersonLargeTableInfo>)

From a TargetedSelect<UDPersonLargeTableInfo>, execute it and return an IEnumerable<UDPersonLargeRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDPersonLargeTableInfo>, CancellationToken)

From a TargetedSelect<UDPersonLargeTableInfo>, execute it and return an IEnumerable<UDPersonLargeRecordData> with the results

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

ToInsertAsync(UDPersonLargeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDPersonLargeRecordData>, CancellationToken)

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

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

ToRecordData(UDPersonLargeRow)

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

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