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
/// <param name="validateOnWrite">In case of a validatable Smart Enum, ensures that the item is valid before writing it to database.</param>
140
+
/// <param name="useConstructorForRead">For keyed value objects only. Use the constructor instead of the factory method when reading the data from database.</param>
141
+
/// <param name="configureEnumsAndKeyedValueObjects">Action for further configuration of the property.</param>
142
+
/// <returns>The entity type builder for method chaining.</returns>
/// <param name="validateOnWrite">In case of a validatable Smart Enum, ensures that the item is valid before writing it to database.</param>
164
+
/// <param name="useConstructorForRead">For keyed value objects only. Use the constructor instead of the factory method when reading the data from database.</param>
165
+
/// <param name="configureEnumsAndKeyedValueObjects">Action for further configuration of the property.</param>
166
+
/// <returns>The entity type builder for method chaining.</returns>
Copy file name to clipboardExpand all lines: test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/Extensions/EntityTypeBuilderExtensionsTests/AddValueObjectConverters.cs
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,19 @@ public void Should_add_converters_for_complex_types()
varentityType=ctx.Model.FindEntityType(typeof(TestEntityWithComplexType))??thrownewException("Entity not found");
58
+
varcomplexProperty=entityType.FindComplexProperty(nameof(TestEntityWithComplexType.TestComplexType))??thrownewException("Complex type property not found");
varconfigureOnEntityTypeLevel=_valueConverterRegistrationisValueConverterRegistration.EntityConfiguration or ValueConverterRegistration.ComplexTypeConfiguration;
Copy file name to clipboardExpand all lines: test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/TestEntities/TestEntityWithComplexType.cs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ public class TestEntityWithComplexType
Copy file name to clipboardExpand all lines: test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/TestEntities/ValueConverterRegistration.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,5 +4,6 @@ public enum ValueConverterRegistration
0 commit comments