diff --git a/src/Artemis.Core/Plugins/DataModelExpansions/DataModel.cs b/src/Artemis.Core/Plugins/DataModelExpansions/DataModel.cs index 3fbff7206..5a10805ef 100644 --- a/src/Artemis.Core/Plugins/DataModelExpansions/DataModel.cs +++ b/src/Artemis.Core/Plugins/DataModelExpansions/DataModel.cs @@ -58,7 +58,7 @@ namespace Artemis.Core.DataModelExpansions /// The key of the child, must be unique to this data model /// An optional name, if not provided the key will be used in a humanized form /// An optional description - public void AddDynamicChild(DataModel dynamicDataModel, string key, string name = null, string description = null) + public DataModel AddDynamicChild(DataModel dynamicDataModel, string key, string name = null, string description = null) { if (dynamicDataModel == null) throw new ArgumentNullException(nameof(dynamicDataModel)); @@ -91,6 +91,8 @@ namespace Artemis.Core.DataModelExpansions Description = description }; _dynamicDataModels.Add(key, dynamicDataModel); + + return dynamicDataModel; } ///