Exemplo n.º 1
0
        public MongoCatalog(MongoConnector <TData> connector, IFilterCreator <TFilterQuery, TData> filterCreator)
        {
            _idPropName = connector.IdProdName;
            _mols       = connector.Mols;

            Init.ForType <TData>(_idPropName);

            _filterCreator = filterCreator;
        }
Exemplo n.º 2
0
 public static ICatalogDb <string, TFilterQuery, TData> CreateCatalogDb <TFilterQuery, TData>(this MongoConnector <TData> connector, IFilterCreator <TFilterQuery, TData> filterCreator)
 => new MongoCatalog <TFilterQuery, TData>(connector, filterCreator);