Show / Hide Table of Contents

Class HeadingRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<HeadingTableInfo>)

From a TargetedDataRecord<HeadingTableInfo>, create and populate a HeadingRecordData POCO object

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

FromSelect(TargetedSelect<HeadingTableInfo>)

From a TargetedSelect<HeadingTableInfo>, execute it and return an IEnumerable<HeadingRecordData> with the results

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

ToInsert(HeadingRecordData)

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

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

ToInserts(IEnumerable<HeadingRecordData>)

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

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

ToRecordData(HeadingRow)

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

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