3 implementations of IValidatableObject
BasketService (1)
Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
MyFrontend (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
OrderProcessor (1)
playground\TestShop\BasketService\Models\BasketItem.cs (1)
5public class BasketItem : IValidatableObject
10 references to IValidatableObject
Microsoft.AspNetCore.Mvc.DataAnnotations (5)
DataAnnotationsModelValidatorProvider.cs (3)
14/// a validator for types which implement <see cref="IValidatableObject"/>. 87if (typeof(IValidatableObject).IsAssignableFrom(context.ModelMetadata.ModelType)) 99if (typeof(IValidatableObject).IsAssignableFrom(modelType))
ValidatableObjectAdapter.cs (2)
20if (!(model is IValidatableObject validatable)) 23typeof(IValidatableObject).Name,
Microsoft.Extensions.Validation (3)
ValidatableTypeInfo.cs (2)
251if (Type.ImplementsInterface(typeof(IValidatableObject)) && value is IValidatableObject validatable)
ValidateContext.cs (1)
16/// Gets or sets the validation context used for validating objects that implement <see cref="IValidatableObject"/> or have <see cref="ValidationAttribute"/>.
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\Validator.cs (1)
430if (instance is IValidatableObject validatable)
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.IValidatableObject))]