Show / Hide Table of Contents

Class FieldLabelRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<FieldLabelTableInfo>)

From a TargetedDataRecord<FieldLabelTableInfo>, create and populate a FieldLabelRecordData POCO object

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

FromSelect(TargetedSelect<FieldLabelTableInfo>)

From a TargetedSelect<FieldLabelTableInfo>, execute it and return an IEnumerable<FieldLabelRecordData> with the results

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

FromSelectAsync(TargetedSelect<FieldLabelTableInfo>, CancellationToken)

From a TargetedSelect<FieldLabelTableInfo>, execute it and return an IEnumerable<FieldLabelRecordData> with the results

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

ToInsertAsync(FieldLabelRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<FieldLabelRecordData>, CancellationToken)

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

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

ToRecordData(FieldLabelRow)

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

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