Show / Hide Table of Contents

Class CurrencyRecordDataExtensions

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

Inheritance
Object
CurrencyRecordDataExtensions
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 CurrencyRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<CurrencyTableInfo>)

From a TargetedDataRecord<CurrencyTableInfo>, create and populate a CurrencyRecordData POCO object

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

FromSelect(TargetedSelect<CurrencyTableInfo>)

From a TargetedSelect<CurrencyTableInfo>, execute it and return an IEnumerable<CurrencyRecordData> with the results

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

ToInsert(CurrencyRecordData)

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

ToInserts(IEnumerable<CurrencyRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<CurrencyRecordData> records)
Parameters
Type Name Description
IEnumerable<CurrencyRecordData> 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