Skip to content

v1.6.0

Compare
Choose a tag to compare
@jamesmcroft jamesmcroft released this 24 May 08:55
· 65 commits to main since this release
4c54e00

Collections

  • Added Sort and SortDescending extensions for ObservableCollection instances
  • Added IsNullOrEmpty validation extension for IEnumerable instances
  • Added GetValueOrDefault extension for Dictionary instances
  • Removed UWP as target framework (no longer required)

Data Converters

  • Added ToFormattedString extension to bool and nullable bool instances
  • Added ToDelimitedString extension for IEnumerable objects with custom string delimiter option
  • Added ToMeters and ToMiles conversion extensions for double instances
  • Modified the BooleanToStringValueConverter to extract non-platform specific logic out to be used cross-platforms
  • Marked the UWP specific value converters as obsolete and target the UI.Data.Converters library

Data Entity Framework

  • Added Page and column name based OrderBy extensions for Entity Framework Queryable objects to ease the implementation of paginated requests
  • Updated EF Core and EF Core Plus packages to latest versions

Data Serialization

  • Added Data.Serialization library with a service for handling type migrations within JSON files saved with Type information contained within it

Data Validation

  • Added IValidationCollection interface that can be used to create custom validation collection solution and updated the ValidatorCollection implementation to support this
  • Added Base64Validator to ensure a value is a valid bas64 string
  • Added GuidValidator to ensure a value can be parsed as a GUID
  • Added LongitudeValidator and LatitudeValidator to ensure a value is within the expected ranges for lat and long
  • Added MacAddressValidator to ensure a value is a valid MAC address using the .NET PhysicalAddress parser
  • Added PredicateValidator to provide a mechanism to validate objects based on custom validation logic for it
  • Added WellFormedUrlValidator to ensure a value is considered a well-formed URL (https/http/ftp/etc.)
  • Updated BetweenValidator to include Inclusive flag to customize the min/max range of validity
  • Updated the Validate method to virtual to allow custom pre or post validation logic for custom built regular expression validators
  • Removed UWP as target framework (no longer required)

Data Validation for Fluent Validation

Runtime

  • Added GetPropertyNames extension for object instances to get all the property names from the specified object as a list of strings

What's Changed

Full Changelog: v1.5.0...v1.6.0