Esempio n. 1
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 FileContextTable([NotNull] IPrincipalKeyValueFactory <TKey> keyValueFactory, IEntityType _entityType, FileContextIntegerValueGeneratorCache _idCache, FileContextOptionsExtension _options)
        {
            idCache          = _idCache;
            entityType       = _entityType;
            options          = _options;
            _keyValueFactory = keyValueFactory;

            _rows = Init();
        }
Esempio n. 2
0
 private static Func <IFileContextTable> CreateFactory <TKey>(IKey key, FileContextIntegerValueGeneratorCache idCache, FileContextOptionsExtension options)
 => () => new FileContextTable <TKey>(key.GetPrincipalKeyValueFactory <TKey>(), key.DeclaringEntityType, idCache, options);
Esempio n. 3
0
 public FileContextTableFactory(FileContextIntegerValueGeneratorCache _idCache)
 {
     idCache = _idCache;
 }