Skip to content

Commit

Permalink
remove type registration indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstonis committed Nov 4, 2021
1 parent 060cb6e commit b619c3b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Tycho/TychoDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -148,15 +139,6 @@ public async ValueTask<TychoDb> 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;
}

Expand Down

0 comments on commit b619c3b

Please sign in to comment.