Show / Hide Table of Contents

    Class InvalidMapTypeException

    This exception is raise when a model property has a database mapping attribute that is not of the correct type.

    Inheritance
    System.Object
    System.Exception
    InvalidMapTypeException
    Implements
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.ToString()
    System.Exception.Data
    System.Exception.HelpLink
    System.Exception.HResult
    System.Exception.InnerException
    System.Exception.Message
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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 Source

    InvalidMapTypeException()

    Initializes a new instance of the InvalidMapTypeException class with no error message.

    Declaration
    public InvalidMapTypeException()
    | Improve this Doc View Source

    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).

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

    Implements

    System.Runtime.Serialization.ISerializable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX