Show / Hide Table of Contents

Class UDContactLargeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDContactLargeTableInfo>)

From a TargetedDataRecord<UDContactLargeTableInfo>, create and populate a UDContactLargeRecordData POCO object

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

FromSelect(TargetedSelect<UDContactLargeTableInfo>)

From a TargetedSelect<UDContactLargeTableInfo>, execute it and return an IEnumerable<UDContactLargeRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDContactLargeTableInfo>, CancellationToken)

From a TargetedSelect<UDContactLargeTableInfo>, execute it and return an IEnumerable<UDContactLargeRecordData> with the results

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

ToInsertAsync(UDContactLargeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDContactLargeRecordData>, CancellationToken)

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

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

ToRecordData(UDContactLargeRow)

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

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