/// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public LiteDBQueryContextFactory(
     [NotNull] QueryContextDependencies dependencies,
     [NotNull] ILiteDBStoreCache storeCache,
     [NotNull] IDbContextOptions contextOptions)
     : base(dependencies)
 {
     _store = storeCache.GetStore(contextOptions);
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LiteDBDatabase"/> class.
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        public LiteDBDatabase(
            [NotNull] DatabaseDependencies dependencies,
            [NotNull] ILiteDBStoreCache storeCache,
            [NotNull] IDbContextOptions options,
            [NotNull] IDiagnosticsLogger <DbLoggerCategory.Update> updateLogger)
            : base(dependencies)
        {
            Check.NotNull(storeCache, nameof(storeCache));
            Check.NotNull(options, nameof(options));
            Check.NotNull(updateLogger, nameof(updateLogger));

            _store        = storeCache.GetStore(options);
            _updateLogger = updateLogger;
        }
コード例 #3
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public LiteDBQueryContext(
     [NotNull] QueryContextDependencies dependencies,
     [NotNull] Func <IQueryBuffer> queryBufferFactory,
     [NotNull] ILiteDBStore store)
     : base(dependencies, queryBufferFactory)
     => Store = store;