Show / Hide Table of Contents

Class ProbRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ProbTableInfo>)

From a TargetedDataRecord<ProbTableInfo>, create and populate a ProbRecordData POCO object

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

FromSelect(TargetedSelect<ProbTableInfo>)

From a TargetedSelect<ProbTableInfo>, execute it and return an IEnumerable<ProbRecordData> with the results

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

ToInsert(ProbRecordData)

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

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

ToInserts(IEnumerable<ProbRecordData>)

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

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

ToRecordData(ProbRow)

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

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