Show / Hide Table of Contents

Class Obsolete3RecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<Obsolete3TableInfo>)

From a TargetedDataRecord<Obsolete3TableInfo>, create and populate a Obsolete3RecordData POCO object

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

FromSelect(TargetedSelect<Obsolete3TableInfo>)

From a TargetedSelect<Obsolete3TableInfo>, execute it and return an IEnumerable<Obsolete3RecordData> with the results

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

ToInsert(Obsolete3RecordData)

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

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

ToInserts(IEnumerable<Obsolete3RecordData>)

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

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

ToRecordData(Obsolete3Row)

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

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