Determines if the Value is part of a valid mapping.
Namespace: NHibernate.MappingAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
bool IsValid( IMapping mapping ) |
| Visual Basic |
|---|
Function IsValid ( _ mapping As IMapping _ ) As Boolean |
| Visual C++ |
|---|
bool IsValid( IMapping^ mapping ) |
Parameters
- mapping
- Type: NHibernate.Engine..::..IMapping
The IMapping to validate.
Return Value
trueTruetruetrue (True in Visual Basic) if the Value is part of a valid mapping, falseFalsefalsefalse (False in Visual Basic) otherwise.
Remarks
Mainly used to make sure that Value maps to the correct number
of columns.
Exceptions
| Exception | Condition |
|---|---|
| NHibernate..::..MappingException |