Show / Hide Table of Contents

Class UDefFieldRecordDataExtensions

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

Inheritance
object
UDefFieldRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class UDefFieldRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<UDefFieldTableInfo>)

From a TargetedDataRecord<UDefFieldTableInfo>, create and populate a UDefFieldRecordData POCO object

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

FromSelect(TargetedSelect<UDefFieldTableInfo>)

From a TargetedSelect<UDefFieldTableInfo>, execute it and return an IEnumerable<UDefFieldRecordData> with the results

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

FromSelectAsync(TargetedSelect<UDefFieldTableInfo>, CancellationToken)

From a TargetedSelect<UDefFieldTableInfo>, execute it and return an IEnumerable<UDefFieldRecordData> with the results

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

ToInsertAsync(UDefFieldRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<UDefFieldRecordData>, CancellationToken)

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

ToRecordData(UDefFieldRow)

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