public MongoDbEntityQueryableExpressionVisitor(
            [NotNull] EntityQueryModelVisitor entityQueryModelVisitor,
            [NotNull] IModel model,
            [NotNull] IMongoDbAnnotationsProvider annotationsProvider,
            [NotNull] IFindExpressionFactory findExpressionFactory,
            [NotNull] IMaterializerFactory materializerFactory,
            [NotNull] IShaperCommandContextFactory shaperCommandContextFactory,
            [NotNull] IValueBufferFromBsonShaperFactory valueBufferShaperFactory)
            : base(Check.NotNull(entityQueryModelVisitor, nameof(entityQueryModelVisitor)))
        {
            Check.NotNull(model, nameof(model));
            Check.NotNull(annotationsProvider, nameof(annotationsProvider));
            Check.NotNull(findExpressionFactory, nameof(findExpressionFactory));
            Check.NotNull(materializerFactory, nameof(materializerFactory));
            Check.NotNull(shaperCommandContextFactory, nameof(shaperCommandContextFactory));
            Check.NotNull(valueBufferShaperFactory, nameof(valueBufferShaperFactory));


            _model = model;
            _annotationsProvider         = annotationsProvider;
            _findExpressionFactory       = findExpressionFactory;
            _materializerFactory         = materializerFactory;
            _shaperCommandContextFactory = shaperCommandContextFactory;
            _valueBufferShaperFactory    = valueBufferShaperFactory;
        }
コード例 #2
0
 public LiteDBEntityQueryableExpressionVisitorFactory(
     IModel model,
     ILiteDBAnnotationsProvider annotationsProvider,
     IFindExpressionFactory findExpressionFactory,
     IMaterializerFactory materializerFactory,
     IShaperCommandContextFactory shaperCommandContextFactory,
     IValueBufferFromBsonShaperFactory valueBufferShaperFactory
     )
 {
     _model = model;
     _annotationsProvider         = annotationsProvider;
     _findExpressionFactory       = findExpressionFactory;
     _materializerFactory         = materializerFactory;
     _shaperCommandContextFactory = shaperCommandContextFactory;
     _valueBufferShaperFactory    = valueBufferShaperFactory;
 }