Show / Hide Table of Contents

Class OnlineAppRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OnlineAppTableInfo>)

From a TargetedDataRecord<OnlineAppTableInfo>, create and populate a OnlineAppRecordData POCO object

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

FromSelect(TargetedSelect<OnlineAppTableInfo>)

From a TargetedSelect<OnlineAppTableInfo>, execute it and return an IEnumerable<OnlineAppRecordData> with the results

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

ToInsert(OnlineAppRecordData)

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

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

ToInserts(IEnumerable<OnlineAppRecordData>)

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

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

ToRecordData(OnlineAppRow)

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

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