Show / Hide Table of Contents

Class AreaRecordDataExtensions

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

Inheritance
Object
AreaRecordDataExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class AreaRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AreaTableInfo>)

From a TargetedDataRecord<AreaTableInfo>, create and populate a AreaRecordData POCO object

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

FromSelect(TargetedSelect<AreaTableInfo>)

From a TargetedSelect<AreaTableInfo>, execute it and return an IEnumerable<AreaRecordData> with the results

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

ToInsert(AreaRecordData)

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

ToInserts(IEnumerable<AreaRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<AreaRecordData> records)
Parameters
Type Name Description
IEnumerable<AreaRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top