/// <summary> /// Creates a new IContainer in the dtabase for use with an <see cref="AggregateConfiguration"/> /// </summary> /// <param name="repository"></param> /// <param name="operation"></param> public AggregateFilterContainer(ICatalogueRepository repository, FilterContainerOperation operation) : base(repository.FilterManager) { repository.InsertAndHydrate(this, new Dictionary <string, object>() { { "Operation", operation.ToString() } }); }
/// <summary> /// Creates a new instance with the given <paramref name="operation"/> /// </summary> /// <param name="repository"></param> /// <param name="operation"></param> public FilterContainer(IDataExportRepository repository, FilterContainerOperation operation = FilterContainerOperation.AND) : base(repository.FilterManager) { Repository = repository; Repository.InsertAndHydrate(this, new Dictionary <string, object> { { "Operation", operation.ToString() } }); }