Show / Hide Table of Contents

Class ContactToDictionaryConverter

Converter methods for converting a contact entity to a dictionary

Inheritance
object
ContactToDictionaryConverter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class ContactToDictionaryConverter

Methods

ContactDictionary(string, string, string, ErpActorType, int)

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
int 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(int, string, string, ErpActorType, int)

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
int rank
string erpKey
string parentErpKey
ErpActorType actorType
int erpConnectionId
Returns
Type Description
Dictionary<string, object>

PersonDictionary(string, string, ErpActorType, int)

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
int 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
bool
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top