feat(data-access): add SqlObjects constants and update references

Add centralized SqlObjects class with constants for stored procedure
and function names using usp_/fn_ prefixes. Update LotFinderRepository
and MisQueryBuilder to use the new naming convention.
This commit is contained in:
Joseph Doherty
2026-01-06 15:50:21 -05:00
parent b797f55ac5
commit e5b9c18352
3 changed files with 20 additions and 3 deletions
@@ -122,7 +122,7 @@ public partial class LotFinderRepository
search.SubmitDt = DateTime.UtcNow;
await using var connection = await _connectionFactory.CreateLotFinderConnectionAsync(ct);
await using var command = new SqlCommand("SubmitSearch", connection)
await using var command = new SqlCommand(SqlObjects.SubmitSearch, connection)
{
CommandType = CommandType.StoredProcedure,
CommandTimeout = _options.Value.DefaultTimeoutSeconds
@@ -147,7 +147,7 @@ public partial class LotFinderRepository
}
catch (Exception ex)
{
LogAndThrow(ex, operation, "SubmitSearch");
LogAndThrow(ex, operation, SqlObjects.SubmitSearch);
throw;
}
}