Ejemplo n.º 1
0
        internal void PostProcessConfiguration()
        {
            SystemFunctions.AddSystemFunction(_options, "mt_immutable_timestamp", "text");
            SystemFunctions.AddSystemFunction(_options, "mt_immutable_timestamptz", "text");

            Add(SystemFunctions);

            Add(Transforms.As <IFeatureSchema>());

            Add(_options.Events);
            _features[typeof(StreamState)] = _options.Events;
            _features[typeof(EventStream)] = _options.Events;
            _features[typeof(IEvent)]      = _options.Events;

            _mappings[typeof(IEvent)] = new EventQueryMapping(_options);

            foreach (var mapping in _documentMappings.Values)
            {
                foreach (var subClass in mapping.SubClasses)
                {
                    _mappings[subClass.DocumentType] = subClass;
                    _features[subClass.DocumentType] = subClass.Parent;
                }
            }
        }
Ejemplo n.º 2
0
        internal void PostProcessConfiguration()
        {
            _mappings[typeof(IEvent)] = new EventQueryMapping(_options);

            foreach (var mapping in _documentMappings.Values)
            {
                foreach (var subClass in mapping.SubClasses)
                {
                    _mappings[subClass.DocumentType] = subClass;
                    _features[subClass.DocumentType] = subClass.Parent;
                }
            }
        }
Ejemplo n.º 3
0
        public StorageFeatures(StoreOptions options)
        {
            _options = options;

            SystemFunctions = new SystemFunctions(options);

            store(SystemFunctions);
            Transforms = options.Transforms.As <Transforms.Transforms>();
            store(Transforms.As <IFeatureSchema>());

            store(options.Events);
            _features[typeof(StreamState)] = options.Events;
            _features[typeof(EventStream)] = options.Events;
            _features[typeof(IEvent)]      = options.Events;

            _mappings[typeof(IEvent)] = new EventQueryMapping(_options);
        }