Show / Hide Table of Contents

Class PersonInterestRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PersonInterestTableInfo>)

From a TargetedDataRecord<PersonInterestTableInfo>, create and populate a PersonInterestRecordData POCO object

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

FromSelect(TargetedSelect<PersonInterestTableInfo>)

From a TargetedSelect<PersonInterestTableInfo>, execute it and return an IEnumerable<PersonInterestRecordData> with the results

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

ToInsert(PersonInterestRecordData)

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

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

ToInserts(IEnumerable<PersonInterestRecordData>)

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

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

ToRecordData(PersonInterestRow)

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

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