/// <summary> /// database import as an asynchronous operation. /// </summary> /// <param name="parameters">The parameters.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public async Task <ICollectionImportResult> DatabaseImportAsync(ModCollectionExporterParams parameters) { // Caching sucks in this ORM DbFieldCache.Flush(); FieldCache.Flush(); IdentityCache.Flush(); PrimaryCache.Flush(); if (await IsV4Async(parameters)) { return(await DatabaseImportv3Async(parameters)); } return(await DatabaseImportv2Async(parameters)); }
public void Cleanup() { ClassMapper.Clear(); PropertyMapper.Clear(); PrimaryMapper.Clear(); IdentityMapper.Clear(); TypeMapper.Clear(); //PropertyHandlerMapper.Clear(); PropertyValueAttributeMapper.Clear(); ClassMappedNameCache.Flush(); PropertyCache.Flush(); PrimaryCache.Flush(); IdentityCache.Flush(); TypeMapCache.Flush(); //PropertyHandlerMapper.Clear(); PropertyValueAttributeCache.Flush(); }
public void Cleanup() { PrimaryCache.Flush(); PrimaryMapper.Clear(); }