コード例 #1
0
        private void AddDataModel(ApplicationDataModel dataModel)
        {
            var plugin = new PredicatePlugin
            {
                DataModels = { dataModel }
            };

            _dataModels.Add(new StorageDataModel(null, plugin));
        }
コード例 #2
0
        private void AddStorageModel(string pluginName = null, string pluginVersion = null)
        {
            var plugin = new PredicatePlugin
            {
                Name       = pluginName,
                Version    = pluginVersion,
                DataModels =
                {
                    new ApplicationDataModel()
                }
            };
            var storageModel = new StorageDataModel(null, plugin);

            _dataModels.Add(storageModel);
        }