Skip to content

Release v22.152.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 04:12
05688c9

Added

  • QueryableElementTypes, which generated code uses to register queryable element and sort key types (part of #2855)
  • The ArcCore sample uses source-generated JSON and ships acceptance specs that run against its untrimmed, trimmed and NativeAOT published executables. (part of #2859)

Changed

  • The Arc source generator now registers every model-bound read model that has a collection query, with the type of each public property. Counting, paging and sorting its IQueryable results then use typed operations instead of building generic methods at runtime. Sort fields, sort directions, thrown exceptions and the expressions handed to query providers stay the same. Under the JIT, element and property types without a registration keep the reflection path. In ahead-of-time compiled code they fail with MissingQueryableElementType or MissingQueryableSortKey, which name the types. (part of #2855)

Fixed

  • Commands no longer fail with an internal error in applications that turn off reflection-based JSON serialization, such as trimmed and NativeAOT publishes. (#3575)