Skip to content

SetIfNotNull for nullable value types#268

Merged
MPapst merged 4 commits intoPapstIO:mainfrom
artnim:SetIfNotNull_for_nullable_value_types
Mar 18, 2026
Merged

SetIfNotNull for nullable value types#268
MPapst merged 4 commits intoPapstIO:mainfrom
artnim:SetIfNotNull_for_nullable_value_types

Conversation

@artnim
Copy link
Copy Markdown
Contributor

@artnim artnim commented Mar 18, 2026

  • Upgrade all NuGet packages to latest versions
  • Add SetIfNotNull overload for nullable value types with tests

artnim added 4 commits March 18, 2026 11:38
Update 23 packages in Directory.Packages.props, notably:
- EF Core 8.0.8 → 10.0.5 (align with net10.0 target)
- Microsoft.Extensions.* 10.0.1 → 10.0.5
- MongoDB.Driver 3.3.0 → 3.7.0
- Testcontainers 4.10.0 → 4.11.0
- FluentAssertions 7.0.0 → 7.2.2 (kept on 7.x due to license change)
Add a struct-constrained overload of SetIfNotNull to EventAggregatorBase
that handles Nullable<T> value types using .HasValue/.Value, complementing
the existing reference type overload. Include unit tests covering int?,
DateTime?, and Guid? scenarios.
Copy link
Copy Markdown
Collaborator

@MPapst MPapst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MPapst MPapst merged commit 64df555 into PapstIO:main Mar 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants