Show / Hide Table of Contents

Class RegistryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<RegistryTableInfo>)

From a TargetedDataRecord<RegistryTableInfo>, create and populate a RegistryRecordData POCO object

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

FromSelect(TargetedSelect<RegistryTableInfo>)

From a TargetedSelect<RegistryTableInfo>, execute it and return an IEnumerable<RegistryRecordData> with the results

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

FromSelectAsync(TargetedSelect<RegistryTableInfo>, CancellationToken)

From a TargetedSelect<RegistryTableInfo>, execute it and return an IEnumerable<RegistryRecordData> with the results

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

ToInsertAsync(RegistryRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<RegistryRecordData>, CancellationToken)

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

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

ToRecordData(RegistryRow)

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

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