public bool GetRootAppSchemas(string docKey, out IList <Schema> schemas) { schemas = null; bool result = scMgr.FindSchemas(docKey, out schemas); return(result); }
public ExStoreRtnCodes FindRootAppEntity(string docKey, out Entity entity, out Schema schema) { entity = null; schema = null; IList <Schema> schemas; IList <DataStorage> dx; bool result; result = scMgr.FindSchemas(docKey, out schemas); if (!result || schemas.Count > 1) { return(ExStoreRtnCodes.XRC_FAIL); } else { show.ShowSchemas(schemas); ExStoreRtnCodes answer = dsMgr.FindDataStorages(docKey, out dx); if (answer != ExStoreRtnCodes.XRC_GOOD) { return(answer); } } // got a schema and a datastorage - get the entity schema = schemas[0]; entity = dx[0].GetEntity(schemas[0]); if (entity == null) { return(ExStoreRtnCodes.XRC_FAIL); } return(ExStoreRtnCodes.XRC_GOOD); }