You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{(existingComponents.HasFlags(ValueObjectTypeComponents.GreaterThanOperator)?"//":"")}public static bool operator >({typeName}? left, {typeName}? right) => left is null ? false : left.CompareTo(right) > 0;
347
-
{(existingComponents.HasFlags(ValueObjectTypeComponents.LessThanOperator)?"//":"")}public static bool operator <({typeName}? left, {typeName}? right) => left is null ? right is not null : left.CompareTo(right) < 0;
Copy file name to clipboardExpand all lines: DomainModeling/DomainModeling.csproj
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Platforms:
40
40
The base class is dead - long live the interface!
41
41
- Feature: Generated Wrappers can now be structs. Unvalidated instances are avoided via analyzer warning against `default`.
42
42
- Feature: Generated [Wrapper]ValueObjects can now be records or use custom base.
43
-
- BREAKING: [Wrapper]ValueObject generator replaced base class by interface. StringComparison property may need to drop "override" keyword and become private.
43
+
- BREAKING: [Wrapper]ValueObject generator replaced base class by interface. StringComparison property should drop "override" and become private.
44
44
- BREAKING: Lack of ValueObject base class requires the string validation methods to be accessed via ValueObjectStringValidator class.
45
45
- BREAKING: Entity<TId, TPrimitive> type params moved from base class to attribute.
- Semi-breaking: Entity<TId> now has ID-based ==/!=.
67
-
- Semi-breaking: IFormattable & co for string wrappers have stopped treating null strings as "", which covered up mistakes instead of revealing them.
68
-
- Semi-breaking: IIdentity now implements IWrapperValueObject.
68
+
- Semi-breaking: IFormattable & co for string wrappers have stopped treating null strings as "", to better reveal mistakes.
- Feature: DummyBuilder records clone on each step, for reuse.
72
+
- Feature: DummyBuilder records cloned on each step, for reuse.
72
73
- Feature: Analyzer warns when '==' or similar operator implicitly casts some IValueObject to something else. Avoids accidentally comparing unrelated types.
73
74
- Feature: Analyzer warns when '>' or similar operator risks unintended null handling.
74
75
- Feature: Analyzer warns if field initializers might be skipped.
0 commit comments