Releases: altasoft/DomainPrimitives
Releases · altasoft/DomainPrimitives
v5.0.0 Updated to net9.0 and moved Swagger Extensions to separate assembly
v4.2.0 added support to generate string methods
What's Changed
Added support to generate: index accessors, range operators, and Substrings for string primitive types.
Full Changelog: v4.1.0...v4.2.0
Added Support for EntityFrameworkCore ValueConverters
What's Changed
Full Changelog: v4.0.0...v4.1.0
v4.0.0
What's Changed
- The Validate method now returns a PrimitiveValidationResult instead of throwing an InvalidDomainValueException.
- New TryCreate methods have been added to all domain primitive classes, which attempt to create an instance and return a boolean indicating success or failure.
- The InvalidDomainValueException now includes a reference to the instance that caused the exception.
- A new type PrimitiveValidationResult has been introduced, which includes IsValid and ErrorMessage properties.
- NuGet packages in all projects have been updated to the latest versions.
- Tests have been modified to support the new signatures.
Full Changelog: v3.0.1...v4.0.0
v3.0.1
Default interface property removed. Default interface property removed. StringLengthAtttribute added.
v2.2.3
v2.2.1
v2.2.0
- The
InvalidDomainValueException
class inInvalidDomainValueException.cs
has been changed from a sealed class to a regular class. - The method
AddAllDomainPrimitivesSwaggerMappings
inSwaggerGenOptionsExt.cs
has been modified to take an array of assemblies as a parameter. A new methodAddDomainPrimitivesSwaggerMappings
has been added to process each assembly individually. - The
UnderlyingPrimitiveType
attribute has been added to various classes in theDomainPrimitiveGeneratorTest
files. - A new class
DomainPrimitiveAssemblyAttribute
has been added toDomainPrimitiveAssemblyAttribute.cs
. This attribute is applied to assemblies to indicate that they are part of a DomainPrimitive assembly. - A new C# file named
UnderlyingPrimitiveTypeAttribute.cs
has been created in theAltaSoft.DomainPrimitives
namespace. This file defines a new attribute class namedUnderlyingPrimitiveTypeAttribute
which inherits from theAttribute
class and has a property UnderlyingPrimitiveType.