Show / Hide Table of Contents

Class ContactToDictionaryConverter

Converter methods for converting a contact entity to a dictionary

Inheritance
Object
ContactToDictionaryConverter
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.dll
Syntax
public static class ContactToDictionaryConverter : Object

Methods

ContactDictionary(String, String, String, ErpActorType, Int32)

Creates a new contact dictionary from the given name and departement

Declaration
public static Dictionary<string, object> ContactDictionary(string name, string departement, string erpKey, ErpActorType actorType, int erpConnectionId)
Parameters
Type Name Description
String name
String departement
String erpKey
ErpActorType actorType
Int32 erpConnectionId
Returns
Type Description
Dictionary<String, Object>

ContactToDictionary(ContactRow)

Converts a contact entity to a dictionary representation

Declaration
public static Dictionary<string, object> ContactToDictionary(ContactRow contact)
Parameters
Type Name Description
ContactRow contact
Returns
Type Description
Dictionary<String, Object>

GetRelatedFieldValue(String, String, Dictionary<String, Object>)

Return the related field value in an array of dictionaries

Declaration
public static object GetRelatedFieldValue(string relatedTableName, string relatedFieldName, Dictionary<string, object> entity)
Parameters
Type Name Description
String relatedTableName
String relatedFieldName
Dictionary<String, Object> entity
Returns
Type Description
Object

PersonDictionary(Int32, String, String, ErpActorType, Int32)

Creates a new person dictionary from the given rank

Declaration
public static Dictionary<string, object> PersonDictionary(int rank, string erpKey, string parentErpKey, ErpActorType actorType, int erpConnectionId)
Parameters
Type Name Description
Int32 rank
String erpKey
String parentErpKey
ErpActorType actorType
Int32 erpConnectionId
Returns
Type Description
Dictionary<String, Object>

PersonDictionary(String, String, ErpActorType, Int32)

Creates a new person dictionary

Declaration
public static Dictionary<string, object> PersonDictionary(string erpKey, string parentErpKey, ErpActorType actorType, int erpConnectionId)
Parameters
Type Name Description
String erpKey
String parentErpKey
ErpActorType actorType
Int32 erpConnectionId
Returns
Type Description
Dictionary<String, Object>

PersonReaderToDictionary(SoDataReader, PersonTableInfo)

Converts a person entity to a dictionary representation

Declaration
public static Dictionary<string, object> PersonReaderToDictionary(SoDataReader reader, PersonTableInfo pt)
Parameters
Type Name Description
SoDataReader reader
PersonTableInfo pt
Returns
Type Description
Dictionary<String, Object>

PersonToDictionary(PersonRow)

Converts a person entity to a dictionary representation

Declaration
public static Dictionary<string, object> PersonToDictionary(PersonRow person)
Parameters
Type Name Description
PersonRow person
Returns
Type Description
Dictionary<String, Object>

SetRelatedFieldValue(Object, String, String, Dictionary<String, Object>)

Sets the related field value in an array of dictionarys

Declaration
public static bool SetRelatedFieldValue(object value, string relatedTableName, string relatedFieldName, Dictionary<string, object> entity)
Parameters
Type Name Description
Object value
String relatedTableName
String relatedFieldName
Dictionary<String, Object> entity
Returns
Type Description
Boolean
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top