Interface IDataModelService
A service that allows you to register and retrieve data models
public interface IDataModelService
Methods
GetDataModel<T>()
If found, returns the registered data model of type T
T? GetDataModel<T>() where T : DataModel
Returns
- T
Type Parameters
TThe type of the data model to find
GetDataModels()
Returns a list of all registered data models
List<DataModel> GetDataModels()
Returns
GetPluginDataModel(PluginFeature)
If found, returns the data model of the provided plugin
DataModel? GetPluginDataModel(PluginFeature pluginFeature)
Parameters
pluginFeaturePluginFeatureThe plugin to find the data model of
Returns
RegisterDataModel(DataModel)
Add a data model to so that it is available to conditions and data bindings
DataModelRegistration RegisterDataModel(DataModel dataModel)
Parameters
dataModelDataModel
Returns
RemoveDataModel(DataModelRegistration)
Remove a previously added data model so that it is no longer available
void RemoveDataModel(DataModelRegistration registration)
Parameters
registrationDataModelRegistration