Show / Hide Table of Contents

Class UDProjectLargeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDProjectLargeTableInfo>)

From a TargetedDataRecord<UDProjectLargeTableInfo>, create and populate a UDProjectLargeRecordData POCO object

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

FromSelect(TargetedSelect<UDProjectLargeTableInfo>)

From a TargetedSelect<UDProjectLargeTableInfo>, execute it and return an IEnumerable<UDProjectLargeRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDProjectLargeTableInfo>, CancellationToken)

From a TargetedSelect<UDProjectLargeTableInfo>, execute it and return an IEnumerable<UDProjectLargeRecordData> with the results

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

ToInsertAsync(UDProjectLargeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDProjectLargeRecordData>, CancellationToken)

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

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

ToRecordData(UDProjectLargeRow)

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

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