Show / Hide Table of Contents

Class Obsolete2RecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<Obsolete2TableInfo>)

From a TargetedDataRecord<Obsolete2TableInfo>, create and populate a Obsolete2RecordData POCO object

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

FromSelect(TargetedSelect<Obsolete2TableInfo>)

From a TargetedSelect<Obsolete2TableInfo>, execute it and return an IEnumerable<Obsolete2RecordData> with the results

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

ToInsert(Obsolete2RecordData)

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

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

ToInserts(IEnumerable<Obsolete2RecordData>)

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

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

ToRecordData(Obsolete2Row)

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

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