Class InvalidMapTypeException
This exception is raise when a model property has a database mapping attribute that is not of the correct type.
Inheritance
Implements
Inherited Members
Namespace: ArgentSea
Assembly: ArgentSea.dll
Syntax
public sealed class InvalidMapTypeException : Exception, ISerializable
Examples
An attempt to map a string property to an integer parameter would generate this error.
Constructors
| Improve this Doc View SourceInvalidMapTypeException()
Initializes a new instance of the InvalidMapTypeException class with no error message.
Declaration
public InvalidMapTypeException()
InvalidMapTypeException(PropertyInfo, Int32)
Initializes a new instance of the InvalidMapTypeException class.
Declaration
public InvalidMapTypeException(PropertyInfo property, int sqlType)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | property | The property decorated with the mapping attribute. |
System.Int32 | sqlType | The stored procedure parameter type (int, not enum, due to provider discrepancies). |
InvalidMapTypeException(String)
Initializes a new instance of the InvalidMapTypeException class with a specified error message.
Declaration
public InvalidMapTypeException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
InvalidMapTypeException(String, Exception)
Initializes a new instance of the InvalidMapTypeException class.
Declaration
public InvalidMapTypeException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception. |
InvalidMapTypeException(String, Type, Int32)
Declaration
public InvalidMapTypeException(string variableName, Type type, int sqlType)
Parameters
Type | Name | Description |
---|---|---|
System.String | variableName | |
System.Type | type | |
System.Int32 | sqlType |