IValidatableObject
validation executed on relationship objects
#1204
Labels
IValidatableObject
validation executed on relationship objects
#1204
DESCRIPTION
When I use an object implementing IValidatableObject on a relationship with linkage data only, then the validation is still executed.
This bug looks similar to #671 which had the same issue when using the
[Required]
attribute.STEPS TO REPRODUCE
Consider the following models
First, create a library
Then, create a book and associate it with the created library.
EXPECTED BEHAVIOR
The book is created.
ACTUAL BEHAVIOR
The custom validation code from
Library
is executed, causing this errorVERSIONS USED
The text was updated successfully, but these errors were encountered: