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; }