View Source
Class ContentTypeModelValidatorBase<TModel, TProperty>
Inheritance
System.Object
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public abstract class ContentTypeModelValidatorBase<TModel, TProperty> : EditorValidator<TModel> where TModel : ContentTypeSave<TProperty> where TProperty : PropertyTypeBasic
Type Parameters
Name |
Description |
TModel |
|
TProperty |
|
Constructors
View Source
ContentTypeModelValidatorBase(IOptions<ModelsBuilderSettings>)
Declaration
public ContentTypeModelValidatorBase(IOptions<ModelsBuilderSettings> config)
Parameters
Type |
Name |
Description |
Microsoft.Extensions.Options.IOptions<ModelsBuilderSettings> |
config |
|
Methods
View Source
Validate(TModel)
Declaration
protected override IEnumerable<ValidationResult> Validate(TModel model)
Parameters
Type |
Name |
Description |
TModel |
model |
|
Returns
Type |
Description |
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> |
|