Class SqlDateValidator
Validator that validates that a date property is a valid SQL date.
Inheritance
System.Object
SqlDateValidator
Namespace: JK.Common.FluentValidation.Validators
Assembly: JK.Common.FluentValidation.dll
Syntax
public class SqlDateValidator : PropertyValidator
Constructors
| Improve this Doc View SourceSqlDateValidator()
Initializes a new instance of the SqlDateValidator class.
Declaration
public SqlDateValidator()
Methods
| Improve this Doc View SourceGetDateTime(Object)
Declaration
protected DateTime? GetDateTime(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.DateTime> |
IsValid(PropertyValidatorContext)
Declaration
protected override bool IsValid(PropertyValidatorContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyValidatorContext | context |
Returns
| Type | Description |
|---|---|
| System.Boolean |