Skip to content

Commit 55b3b2b

Browse files
committed
Metadata property ValueObject.TryGetFromKey must be nullable in case factories are disabled.
1 parent 57c04b9 commit 55b3b2b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Copyright>(c) $([System.DateTime]::Now.Year), Pawel Gerr. All rights reserved.</Copyright>
5-
<VersionPrefix>8.9.1</VersionPrefix>
5+
<VersionPrefix>8.9.2</VersionPrefix>
66
<Authors>Pawel Gerr</Authors>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<PackageProjectUrl>https://github.com/PawelGerr/Thinktecture.Runtime.Extensions</PackageProjectUrl>

docs

Submodule docs updated from 88270ea to c53dcb2

src/Thinktecture.Runtime.Extensions/Internal/Metadata.Keyed.ValueObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public sealed class ValueObject : Keyed
3333
/// <summary>
3434
/// Converts a key to a Value Object item and validates the key.
3535
/// </summary>
36-
public required TryGetFromKey TryGetFromKey { get; init; }
36+
public required TryGetFromKey? TryGetFromKey { get; init; }
3737
}
3838
}
3939
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace Thinktecture.Runtime.Tests.TestValueObjects;
2+
3+
[ValueObject<int>(SkipFactoryMethods = true)]
4+
public partial class IntBasedReferenceValueObjectWithoutFactory;

0 commit comments

Comments
 (0)