Show / Hide Table of Contents

Class AddressRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<AddressTableInfo>)

From a TargetedDataRecord<AddressTableInfo>, create and populate a AddressRecordData POCO object

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

FromSelect(TargetedSelect<AddressTableInfo>)

From a TargetedSelect<AddressTableInfo>, execute it and return an IEnumerable<AddressRecordData> with the results

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

ToInsert(AddressRecordData)

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

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

ToInserts(IEnumerable<AddressRecordData>)

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

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

ToRecordData(AddressRow)

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

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