Dynamic data models - Rewrote the visualization to use leverage new core APIs

This commit is contained in:
SpoinkyNL committed 2020-10-04 22:06:21 +02:00
1 parent 26db794467
commit 8f552d0f71
22 files changed
+463 -374

No files matched your search

@@ -68,7 +68,7 @@ namespace Artemis.Core.DataModelExpansions
if (_dynamicDataModels.ContainsKey(key))
{
throw new ArtemisCoreException($"Cannot add a dynamic data model with key '{key}' " +
"because the key is already in use on this data model.");
"because the key is already in use on by another dynamic property this data model.");
}
if (_dynamicDataModels.ContainsValue(dynamicDataModel))
@@ -78,6 +78,12 @@ namespace Artemis.Core.DataModelExpansions
$"because the dynamic data model is already added with key '{existingKey}.");
}
if (GetType().GetProperty(key) != null)
{
throw new ArtemisCoreException($"Cannot add a dynamic data model with key '{key}' " +
"because the key is already in use by a static property on this data model.");
}
dynamicDataModel.PluginInfo = PluginInfo;
dynamicDataModel.DataModelDescription = new DataModelPropertyAttribute
{