Class ContactAndPersonImporter
Implements the import functionality in NetServer
Inherited Members
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.dll
Syntax
public class ContactAndPersonImporter
Constructors
ContactAndPersonImporter()
Default constructor
Declaration
public ContactAndPersonImporter()
Methods
DoImport(ImportItem[], string[], bool, string, bool, bool, int, ErpActorType, Action<List<ContactPersonIdItem>>, Action<List<ContactPersonIdItem>>, Action<List<string>>, Action<List<string>>)
Import function
Declaration
public ImportItem[] DoImport(ImportItem[] rows, string[] columnDefs, bool saveForReal, string culture, bool isErpContact, bool isErpPerson, int connectionId, ErpActorType actorType, Action<List<ContactPersonIdItem>> contactAndPersonsInserted, Action<List<ContactPersonIdItem>> contactsAndPersonsUpdated, Action<List<string>> erpContactKeysToSync, Action<List<string>> erpPersonKeysToSync)
Parameters
Type | Name | Description |
---|---|---|
ImportItem[] | rows | |
string[] | columnDefs | |
bool | saveForReal | |
string | culture | |
bool | isErpContact | |
bool | isErpPerson | |
int | connectionId | |
ErpActorType | actorType | |
Action<List<ContactPersonIdItem>> | contactAndPersonsInserted | |
Action<List<ContactPersonIdItem>> | contactsAndPersonsUpdated | |
Action<List<string>> | erpContactKeysToSync | |
Action<List<string>> | erpPersonKeysToSync |
Returns
Type | Description |
---|---|
ImportItem[] |
WriteStats(string)
Writes out statistics - time and memory
Declaration
public void WriteStats(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message |