Show / Hide Table of Contents

Class DictionaryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DictionaryTableInfo>)

From a TargetedDataRecord<DictionaryTableInfo>, create and populate a DictionaryRecordData POCO object

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

FromSelect(TargetedSelect<DictionaryTableInfo>)

From a TargetedSelect<DictionaryTableInfo>, execute it and return an IEnumerable<DictionaryRecordData> with the results

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

ToInsert(DictionaryRecordData)

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

ToInserts(IEnumerable<DictionaryRecordData>)

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