Show / Hide Table of Contents

Class UDDocSmallRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDDocSmallTableInfo>)

From a TargetedDataRecord<UDDocSmallTableInfo>, create and populate a UDDocSmallRecordData POCO object

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

FromSelect(TargetedSelect<UDDocSmallTableInfo>)

From a TargetedSelect<UDDocSmallTableInfo>, execute it and return an IEnumerable<UDDocSmallRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDDocSmallTableInfo>, CancellationToken)

From a TargetedSelect<UDDocSmallTableInfo>, execute it and return an IEnumerable<UDDocSmallRecordData> with the results

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

ToInsertAsync(UDDocSmallRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDDocSmallRecordData>, CancellationToken)

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

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

ToRecordData(UDDocSmallRow)

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

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