Пример #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="EntityLoadInfoFactory"/>.
 /// </summary>
 /// <param name="currentDbContext">Used to get the current <see cref="DbContext"/> instance.</param>
 /// <param name="valueBufferFactory">An <see cref="IValueBufferFactory"/> that can be used to create <see cref="ValueBuffer"/>
 /// for loading documents.</param>
 public EntityLoadInfoFactory(
     [NotNull] ICurrentDbContext currentDbContext,
     [NotNull] IValueBufferFactory valueBufferFactory)
 {
     _currentDbContext   = Check.NotNull(currentDbContext, nameof(currentDbContext));
     _valueBufferFactory = Check.NotNull(valueBufferFactory, nameof(valueBufferFactory));
 }
 public virtual void NotifyReaderCreated()
 => _valueBufferFactory = BsonQueryGeneratorFunc()
                          .CreateValueBufferFactory(_valueBufferFactoryFactory);