Skip to content

Releases: altasoft/DomainPrimitives

v5.0.0 Updated to net9.0 and moved Swagger Extensions to separate assembly

21 Nov 15:21
debc0d9
Compare
Choose a tag to compare

What's Changed

    1. Added support for .net 9 and moved SwaggerExtensions from AltaSoft.DomainPrimitives to separate assembly by @temonk in #15

Full Changelog: v4.2.0...v5.0.0

v4.2.0 added support to generate string methods

05 Sep 08:38
ef03c30
Compare
Choose a tag to compare

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

18 Jun 15:49
4398111
Compare
Choose a tag to compare

What's Changed

  • Added support for EntityFrameworkCore ValueConverters by @temonk in #13

Full Changelog: v4.0.0...v4.1.0

v4.0.0

03 Jun 12:28
Compare
Choose a tag to compare

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

07 May 18:24
58006f0
Compare
Choose a tag to compare

What's Changed

  • Refactor Equals and CompareTo method body generation

Full Changelog: v3.0.0...v3.0.1

Default interface property removed. Default interface property removed. StringLengthAtttribute added.

01 May 13:27
9158c97
Compare
Choose a tag to compare

v2.2.3

04 Apr 17:22
Compare
Choose a tag to compare

AddAllDomainPrimitivesSwaggerMappings caused an error if the asembly was referenced several times as the mapping was added multiple times

v2.2.1

04 Apr 16:59
Compare
Choose a tag to compare

There was an error in 2.2.0. Some of the using statements were missing

v2.2.0

04 Apr 16:46
Compare
Choose a tag to compare
  1. The InvalidDomainValueException class in InvalidDomainValueException.cs has been changed from a sealed class to a regular class.
  2. The method AddAllDomainPrimitivesSwaggerMappings in SwaggerGenOptionsExt.cs has been modified to take an array of assemblies as a parameter. A new method AddDomainPrimitivesSwaggerMappings has been added to process each assembly individually.
  3. The UnderlyingPrimitiveType attribute has been added to various classes in the DomainPrimitiveGeneratorTest files.
  4. A new class DomainPrimitiveAssemblyAttribute has been added to DomainPrimitiveAssemblyAttribute.cs. This attribute is applied to assemblies to indicate that they are part of a DomainPrimitive assembly.
  5. A new C# file named UnderlyingPrimitiveTypeAttribute.cs has been created in the AltaSoft.DomainPrimitives namespace. This file defines a new attribute class named UnderlyingPrimitiveTypeAttribute which inherits from the Attribute class and has a property UnderlyingPrimitiveType.

v2.1.0

18 Mar 11:40
ebbcd15
Compare
Choose a tag to compare

Added new IDomainValue interface that returns underlying Primitive Type and underlying prmitive object