Show / Hide Table of Contents

Class UDefFieldGLRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<UDefFieldGLTableInfo>)

From a TargetedDataRecord<UDefFieldGLTableInfo>, create and populate a UDefFieldGLRecordData POCO object

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

FromSelect(TargetedSelect<UDefFieldGLTableInfo>)

From a TargetedSelect<UDefFieldGLTableInfo>, execute it and return an IEnumerable<UDefFieldGLRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDefFieldGLTableInfo>, CancellationToken)

From a TargetedSelect<UDefFieldGLTableInfo>, execute it and return an IEnumerable<UDefFieldGLRecordData> with the results

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

ToInsertAsync(UDefFieldGLRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<UDefFieldGLRecordData>, CancellationToken)

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

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

ToRecordData(UDefFieldGLRow)

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

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