Show / Hide Table of Contents

Class RegistryRecordDataExtensions

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

Inheritance
Object
RegistryRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class RegistryRecordDataExtensions : Object

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();

ToInsert(RegistryRecordData)

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

Declaration
public static Insert ToInsert(this RegistryRecordData record)
Parameters
Type Name Description
RegistryRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<RegistryRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<RegistryRecordData> records)
Parameters
Type Name Description
IEnumerable<RegistryRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(RegistryRow)

Extension methods to make it easy to fetch RegistryRecordData objects from the database, using the 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