Click or drag to resize

FluentAPIExtensions Class

Class that provides extension methods for the fluent API.
Inheritance Hierarchy
SystemObject
  Xploration.ValidationFluentAPIExtensions

Namespace:  Xploration.Validation
Assembly:  Xploration.Validation (in Xploration.Validation.dll) Version: 1.0.0-alpha1
Syntax
public static class FluentAPIExtensions

The FluentAPIExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCheck(String)
Begins a fluent API statement for validating a string type.
Public methodStatic memberCheck(String, String)
Begins a fluent API statement for validating a string type.
Public methodStatic memberCheckT(T)
Begins a fluent API statement for validating a struct type.
Public methodStatic memberCheckT(T, T)
Begins a fluent API statement for validating a struct type.
Public methodStatic memberCheckTClass, TProperty(ClassValidatorTClass, ExpressionFuncTClass, TProperty)
Begins a fluent API statement for validating a property of a class.
Public methodStatic memberCheckCollection(IEnumerable)
Begins a fluent API statement for validating a collection.
Public methodStatic memberCheckCollectionT(IEnumerableT)
Begins a fluent API statement for validating a collection.
Public methodStatic memberCheckCollectionTClass(ClassValidatorTClass, ExpressionFuncTClass, IEnumerable)
Begins a fluent API statement for validating a property which value is a collection.
Public methodStatic memberCheckCollectionTClass, T(ClassValidatorTClass, ExpressionFuncTClass, IEnumerableT)
Begins a fluent API statement for validating a property which value is a collection.
Public methodStatic memberCheckElementsT(IEnumerableT)
Begins a fluent API statement for validating the elements of a collection.
Public methodStatic memberCheckElementsTClass, TElement(ClassValidatorTClass, ExpressionFuncTClass, IEnumerableTElement)
Begins a fluent API statement for validating the elements in a collection of a property.
Public methodStatic memberOnT(IEntityValidatorBuilderT, FuncT, Boolean)
Public methodStatic memberOnTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty, FuncTProperty, Boolean)
Public methodStatic memberOnDisallowedElementT(IEntityValidatorBuilderIEnumerableT, T)
Public methodStatic memberOnDisallowedElementTClass, T(IPropertyValidatorBuilderTClass, IEnumerableT, T)
Public methodStatic memberOnElementOfT(IEntityValidatorBuilderT, T)
Public methodStatic memberOnElementOfTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty, TProperty)
Public methodStatic memberOnMatches(IEntityValidatorBuilderString, String)
Includes a RegexValidator in a fluent API statement that uses a Regex to validate a string value.
Public methodStatic memberOnMatches(IEntityValidatorBuilderString, Regex)
Includes a RegexValidator in a fluent API statement that uses a Regex to validate a string value.
Public methodStatic memberOnMatchesTClass(IPropertyValidatorBuilderTClass, String, String)
Includes a RegexValidator in a fluent API statement that uses a Regex to validate a property its string value.
Public methodStatic memberOnMatchesTClass(IPropertyValidatorBuilderTClass, String, Regex)
Includes a RegexValidator in a fluent API statement that uses a Regex to validate a property its string value.
Public methodStatic memberOnMaxElements(IEntityValidatorBuilderIEnumerable, Int32)
Includes a MaxElementsValidator in a fluent API statement that allows up to a certain amount of elements in a collection.
Public methodStatic memberOnMaxElementsT(IEntityValidatorBuilderIEnumerableT, Int32)
Includes a MaxElementsValidator in a fluent API statement that allows up to a certain amount of elements in a collection.
Public methodStatic memberOnMaxElementsTClass(IPropertyValidatorBuilderTClass, IEnumerable, Int32)
Includes a MaxElementsValidator in a fluent API statement that allows up to a certain amount of elements in property its collection.
Public methodStatic memberOnMaxElementsTClass, T(IPropertyValidatorBuilderTClass, IEnumerableT, Int32)
Includes a MaxElementsValidator in a fluent API statement that allows up to a certain amount of elements in property its collection.
Public methodStatic memberOnMaxLength(IEntityValidatorBuilderString, Int32)
Includes a MaxLengthValidator in a fluent API statement that validates a string on a maximum length.
Public methodStatic memberOnMaxLengthTClass(IPropertyValidatorBuilderTClass, String, Int32)
Includes a MaxLengthValidator in a fluent API statement that validates a property on a maximum string length.
Public methodStatic memberOnMaxValueT(IEntityValidatorBuilderT, T)
Public methodStatic memberOnMaxValueTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty, TProperty)
Public methodStatic memberOnMinElements(IEntityValidatorBuilderIEnumerable, Int32)
Includes a MinElementsValidator in a fluent API statement that requires a minimum amount of elements in a collection.
Public methodStatic memberOnMinElementsT(IEntityValidatorBuilderIEnumerableT, Int32)
Includes a MinElementsValidator in a fluent API statement that requires a minimum amount of elements in a collection.
Public methodStatic memberOnMinElementsTClass(IPropertyValidatorBuilderTClass, IEnumerable, Int32)
Includes a MinElementsValidator in a fluent API statement that requires a minimum amount of elements in property its collection.
Public methodStatic memberOnMinElementsTClass, T(IPropertyValidatorBuilderTClass, IEnumerableT, Int32)
Includes a MinElementsValidator in a fluent API statement that requires a minimum amount of elements in property its collection.
Public methodStatic memberOnMinLength(IEntityValidatorBuilderString, Int32)
Includes a MinLengthValidator in a fluent API statement that validates a string on a minimum length.
Public methodStatic memberOnMinLengthTClass(IPropertyValidatorBuilderTClass, String, Int32)
Includes a MinLengthValidator in a fluent API statement that validates a property on a minimum string length.
Public methodStatic memberOnMinValueT(IEntityValidatorBuilderT, T)
Public methodStatic memberOnMinValueTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty, TProperty)
Public methodStatic memberOnNotDefaultT(IEntityValidatorBuilderT)
Includes a RequiredValidator in a fluent API statement that requires a struct not to be its default value.
Public methodStatic memberOnNotDefaultTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty)
Includes a RequiredValidator in a fluent API statement that requires a property value not to be its default value.
Public methodStatic memberOnNotNullT(IEntityValidatorBuilderT)
Includes a RequiredValidator in a fluent API statement that requires an object reference not to be null.
Public methodStatic memberOnNotNullTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty)
Includes a RequiredValidator in a fluent API statement that requires a property value not to be null.
Public methodStatic memberOnNotNullOrEmpty(IEntityValidatorBuilderString)
Includes a NotNullOrEmptyValidator in a fluent API statement that requires a string value not being null or empty.
Public methodStatic memberOnNotNullOrEmptyTClass(IPropertyValidatorBuilderTClass, String)
Includes a NotNullOrEmptyValidator in a fluent API statement that validates a property its string value on not being null or empty.
Public methodStatic memberOnNotNullOrWhiteSpace(IEntityValidatorBuilderString)
Includes a NotNullOrEmptyValidator in a fluent API statement that requires a string value on not being null, empty or consists only of white-space.
Public methodStatic memberOnNotNullOrWhiteSpaceTClass(IPropertyValidatorBuilderTClass, String)
Includes a NotNullOrEmptyValidator in a fluent API statement that validates a property its string value on not being null, empty or consists only of white-space..
Public methodStatic memberOnNotOverWritten(IEntityValidatorBuilderObject)
Includes a WriteOnceValidator in a fluent API statement that only allows an entity transition of Unchanged or Assigned.
Public methodStatic memberOnNotOverWrittenTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty)
Includes a WriteOnceValidator in a fluent API statement that only allows a property value transition of Unchanged or Assigned.
Public methodStatic memberOnRequiredElementT(IEntityValidatorBuilderIEnumerableT, T)
Public methodStatic memberOnRequiredElementTClass, T(IPropertyValidatorBuilderTClass, IEnumerableT, T)
Public methodStatic memberOnUnChanged(IEntityValidatorBuilderObject)
Includes a ReadOnlyValidator in a fluent API statement that requires that the transition state of the context is Unchanged.
Public methodStatic memberOnUnChangedTClass, TProperty(IPropertyValidatorBuilderTClass, TProperty)
Includes a ReadOnlyValidator in a fluent API statement that requires that the transition state of the property is Unchanged.
Public methodStatic memberValidateAndThrowAsync(IExecutableBuilder)
Executes the current fluent API statement and throws a ValidationException if there was a validation failure.
Public methodStatic memberValidateAndThrowAsyncE(IExecutableBuilder)
Executes the current fluent API statement and throws an exception if there was a validation failure.
Public methodStatic memberValidateAndThrowAsyncE(IExecutableBuilder, String)
Executes the current fluent API statement and throws an exception if there was a validation failure.
Public methodStatic memberValidateAsync
Executes the current fluent API statement and returns if there was a validation failure.
Top
See Also