Show / Hide Table of Contents

Class UDContactSmallRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDContactSmallTableInfo>)

From a TargetedDataRecord<UDContactSmallTableInfo>, create and populate a UDContactSmallRecordData POCO object

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

FromSelect(TargetedSelect<UDContactSmallTableInfo>)

From a TargetedSelect<UDContactSmallTableInfo>, execute it and return an IEnumerable<UDContactSmallRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDContactSmallTableInfo>, CancellationToken)

From a TargetedSelect<UDContactSmallTableInfo>, execute it and return an IEnumerable<UDContactSmallRecordData> with the results

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

ToInsertAsync(UDContactSmallRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDContactSmallRecordData>, CancellationToken)

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

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

ToRecordData(UDContactSmallRow)

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

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