Show / Hide Table of Contents

Class DashboardThemeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DashboardThemeTableInfo>)

From a TargetedDataRecord<DashboardThemeTableInfo>, create and populate a DashboardThemeRecordData POCO object

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

FromSelect(TargetedSelect<DashboardThemeTableInfo>)

From a TargetedSelect<DashboardThemeTableInfo>, execute it and return an IEnumerable<DashboardThemeRecordData> with the results

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

ToInsert(DashboardThemeRecordData)

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

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

ToInserts(IEnumerable<DashboardThemeRecordData>)

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

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

ToRecordData(DashboardThemeRow)

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

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