Class SqlObjectCastException
- Namespace
- LfrlAnvil.Sql.Exceptions
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents an error that occurred due to an SQL object of invalid type.
public class SqlObjectCastException : InvalidCastException, ISerializable
- Inheritance
-
SqlObjectCastException
- Implements
- Inherited Members
Constructors
SqlObjectCastException(SqlDialect, Type, Type)
Creates a new SqlObjectCastException instance.
public SqlObjectCastException(SqlDialect dialect, Type expected, Type actual)
Parameters
dialectSqlDialectSQL dialect with which the object is associated.
expectedTypeExpected object type.
actualTypeActual object type.
Properties
Actual
Actual object type.
public Type Actual { get; }
Property Value
Dialect
SQL dialect with which the object is associated.
public SqlDialect Dialect { get; }
Property Value
Expected
Expected object type.
public Type Expected { get; }