Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.SqlBuilder

Common Roslyn analyzer (EricksonLopez.SqlBuilder.Analyzers) and Native AOT compiler errors.

  • ESQL005 ([SqlEntity] must be partial): SqlBuilder.SourceGenerators cannot emit GetReaderParser() or IStaticEntityMetadata<T> unless the target entity class is declared partial.
  • ESQL007 (Unindexed OrderBy / OrderByDescending property): Annotate indexed sort keys (such as Id) with [Indexed] from EricksonLopez.SqlBuilder.Annotations to clear ESQL007.
  • ESQL011 (Sql.Raw(string)): Always bind FormattableString (FormattableString sql = $"..."; Sql.Raw(sql);) instead of raw strings so interpolated values become SQL parameters.
  • AOT warning on AotQueryAsync(ISqlQuery, ...): Expression-tree compilation carries [RequiresDynamicCode] / [RequiresUnreferencedCode]. Pass a pre-compiled SqlResult (compiler.Compile(rawQuery)) to AotQueryAsync(SqlResult, mapper) on strict Native AOT hot paths.
  • InvalidOperationException on Delete<T>() or Dapper: Delete<T>() rejects unbounded deletes lacking .Where(...), and EricksonLopez.SqlBuilder.Dapper requires DapperExtensions.RegisterCompiler<TConnection>(...) before executing queries.