Show / Hide Table of Contents

Class UDTempSmallRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDTempSmallTableInfo>)

From a TargetedDataRecord<UDTempSmallTableInfo>, create and populate a UDTempSmallRecordData POCO object

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

FromSelect(TargetedSelect<UDTempSmallTableInfo>)

From a TargetedSelect<UDTempSmallTableInfo>, execute it and return an IEnumerable<UDTempSmallRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDTempSmallTableInfo>, CancellationToken)

From a TargetedSelect<UDTempSmallTableInfo>, execute it and return an IEnumerable<UDTempSmallRecordData> with the results

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

ToInsertAsync(UDTempSmallRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDTempSmallRecordData>, CancellationToken)

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

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

ToRecordData(UDTempSmallRow)

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

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