C# Class Dibware.StoredProcedureFramework.Validators.SqlParameterDecimalValueValidator

Datei anzeigen Open project: dibley1973/StoredProcedureFramework

Public Methods

Method Description
SqlParameterDecimalValueValidator ( SqlParameter sqlParameter, decimal value ) : System

Initializes a new instance of the SqlParameterDecimalValueValidator class using the SqlParameter to validate against and the value to validat.

Validate ( ) : void

Determines whether the specified decimal value is valid for the specifed SqlParameter and throws an exception if not.

Method Details

SqlParameterDecimalValueValidator() public method

Initializes a new instance of the SqlParameterDecimalValueValidator class using the SqlParameter to validate against and the value to validat.
public SqlParameterDecimalValueValidator ( SqlParameter sqlParameter, decimal value ) : System
sqlParameter System.Data.SqlClient.SqlParameter /// The Sql Parameter to validate against. ///
value decimal The value to validate.
return System

Validate() public method

Determines whether the specified decimal value is valid for the specifed SqlParameter and throws an exception if not.
public Validate ( ) : void
return void