Skip to content

Release v15.29.2

Choose a tag to compare

@github-actions github-actions released this 17 May 16:36
4e5339a

[SetValue<TEvent>(constant)] on constructor parameters of child record types used with [ChildrenFrom<T>] was silently ignored — the property always received the CLR default instead of the specified constant. The child parameter loop in ProcessChildrenFromAttributeCore handled every other attribute kind except SetValue.

Fixed

  • [SetValue<TEvent>(constant)] on child constructor parameters now correctly emits a $value(N) constant mapping in ChildrenFrom projections, matching the behavior already present for root-level parameters (#)

Changed

  • ConvertValueToInvariantString moved from ModelBoundProjectionBuilder (private) to FromDefinitionExtensions (internal static) so it is shared by both the root and children projection builders
  • SetValueAttribute<> added to the hasExplicitMapping guard in ChildrenDefinitionExtensions so auto-mapping is correctly suppressed when an explicit constant is declared