End-User Documentation

Assembly Discovery Model

Assembly Discovery Model

Assembly scanning lets QueryLens find SQL statements in registry-style codebases and validate them in one pass.

What QueryLens Discovers

  • Public static SqlStatement fields and properties
  • Public static members annotated with SqlQueryAttribute
  • Public static members annotated with SqlInsertAttribute
  • Public static members annotated with SqlUpdateAttribute
  • Public static members annotated with SqlDeleteAttribute
  • Public static members annotated with SqlMergeAttribute
  • Public static members annotated with SqlStoredProcAttribute

Supported Shapes

  • Fields
  • Properties
  • Parameterless methods

Example Source Names

Results can reference members using source names like OrderQueries.GetByStatus.

Example

var result = QueryLens.ValidateAssembly(typeof(OrderQueries).Assembly);
Assert.True(result.AllValid, result.Summary);

Related