Show / Hide Table of Contents

Class DiaryViewRowRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DiaryViewRowTableInfo>)

From a TargetedDataRecord<DiaryViewRowTableInfo>, create and populate a DiaryViewRowRecordData POCO object

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

FromSelect(TargetedSelect<DiaryViewRowTableInfo>)

From a TargetedSelect<DiaryViewRowTableInfo>, execute it and return an IEnumerable<DiaryViewRowRecordData> with the results

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

ToInsert(DiaryViewRowRecordData)

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

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

ToInserts(IEnumerable<DiaryViewRowRecordData>)

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

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

ToRecordData(DiaryViewRowRow)

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

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