From b619c3b14ebe357306f815bfc3fb473259638364 Mon Sep 17 00:00:00 2001 From: Michael Stonis Date: Thu, 4 Nov 2021 09:47:35 -0500 Subject: [PATCH] remove type registration indexers --- Tycho/TychoDb.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Tycho/TychoDb.cs b/Tycho/TychoDb.cs index a02b5a3..d39cdcf 100644 --- a/Tycho/TychoDb.cs +++ b/Tycho/TychoDb.cs @@ -127,15 +127,6 @@ public TychoDb Connect() _connection = BuildConnection (); - foreach (var registeredType in _registeredTypeInformation) - { - var value = registeredType.Value; - if(!string.IsNullOrEmpty(value.IdPropertyPath) && !string.IsNullOrEmpty(value.IdPropertyPath)) - { - CreateIndex(value.IdPropertyPath, value.IsNumeric, value.TypeName, $"ID_{value.TypeName}_{value.IdProperty}"); - } - } - return this; } @@ -148,15 +139,6 @@ public async ValueTask ConnectAsync () _connection = await BuildConnectionAsync ().ConfigureAwait(false); - foreach (var registeredType in _registeredTypeInformation) - { - var value = registeredType.Value; - if (!string.IsNullOrEmpty(value.IdPropertyPath) && !string.IsNullOrEmpty(value.IdPropertyPath)) - { - await CreateIndexAsync(value.IdPropertyPath, value.IsNumeric, value.TypeName, $"ID_{value.TypeName}_{value.IdProperty}").ConfigureAwait(false); - } - } - return this; }