Show / Hide Table of Contents

Class FormKeysRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<FormKeysTableInfo>)

From a TargetedDataRecord<FormKeysTableInfo>, create and populate a FormKeysRecordData POCO object

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

FromSelect(TargetedSelect<FormKeysTableInfo>)

From a TargetedSelect<FormKeysTableInfo>, execute it and return an IEnumerable<FormKeysRecordData> with the results

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

FromSelectAsync(TargetedSelect<FormKeysTableInfo>, CancellationToken)

From a TargetedSelect<FormKeysTableInfo>, execute it and return an IEnumerable<FormKeysRecordData> with the results

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

ToInsertAsync(FormKeysRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<FormKeysRecordData>, CancellationToken)

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

ToRecordData(FormKeysRow)

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