private void test01b() { Entity ex; DataStorage ds; bool result; string fieldName = XsMgr.XRoot.SchemaDefinition.Fields[SchemaRootKey.RK_APP_GUID].Name; result = DsMgr.GetDataStorage( DsMgr[DataStoreIdx.ROOT_DATA_STORE].Schema, out ex, out ds); if (!result) { xsTest.taskDialogWarning_Ok("schema lookup", $"datastorage| not found", "\n" + $"app guid| n/a"); return; } string msg1 = ds.Name; string msg2 = ex.Get <string>(fieldName); xsTest.taskDialogWarning_Ok("schema lookup", $"datastorage name| {msg1}", "\n" + $"app guid|\n{msg2}"); }
// public void SetExStorageRootToElement(Element e) // { // AppRootElement = e; // } // public void SetExStorageRootToBasePt() // { // SetExStorageRootToElement(Util.GetProjectBasepoint()); // } public bool GetRootEntity(ExStoreRoot xRoot, out Entity e, out DataStorage ds) { Schema schema = GetRootSchema(); // makeRootSchema(xRoot); return(DsMgr.GetDataStorage(schema, out e, out ds)); }
public bool GetAppEntity(ExStoreApp xApp, ExStoreCell xCell, out Entity e, out DataStorage ds) { ExStorageTests.location = 260; e = null; ds = null; Schema schema = MakeAppSchema(xApp, xCell); if (schema == null) { return(false); } ExStorageTests.location = 265; return(DsMgr.GetDataStorage(schema, out e, out ds)); }