Example #1
0
 ModificationResult ModifyXPObjectTable(ModificationStatement[] dmlStatements, InsertStatement insertStatement, ModificationResult modificationResult)
 {
     foreach (var simpleDataLayer in _dataStoreManager.GetDataLayers(DataStore))
     {
         if (!simpleDataLayer.Value.IsLegacy)
         {
             var dataLayer = simpleDataLayer.Value;
             if (!TypeExists(dataLayer, insertStatement))
             {
                 if (!dataLayer.IsMainLayer)
                 {
                     _xpoObjectHacker.CreateObjectTypeIndetifier(insertStatement, _dataStoreManager.GetDataLayer(DataStoreManager.StrDefault, DataStore));
                 }
                 var modifyData = dataLayer.ModifyData(dmlStatements);
                 if (modifyData.Identities.Any())
                 {
                     modificationResult = modifyData;
                 }
             }
         }
     }
     return(modificationResult);
 }