Skip to main content

IRuleBuilderInitial<T, TProperty>

Rule builder that starts the chain

Assembly: ServiceStack.dll
View Source
Declaration
public interface IRuleBuilderInitial<T, out TProperty> : IRuleBuilder<T, TProperty>, IConfigurable<PropertyRule, IRuleBuilderInitial<T, TProperty>>

Methods

Transform<TNew>(Func<TProperty, TNew>)

Transforms the property value before validation occurs.

View Source
Declaration
[Obsolete("Use Transform(x => x.Property, transformer) at the root level instead. This method will be removed in FluentValidation 10.")]
IRuleBuilderInitial<T, TNew> Transform<TNew>(Func<TProperty, TNew> transformationFunc)
Returns

ServiceStack.FluentValidation.IRuleBuilderInitial<<T>,<TNew>>

Parameters
TypeName
System.Func<<TProperty>,<TNew>>transformationFunc
Type Parameters
  • TNew