Table of Contents

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

dialect SqlDialect

SQL dialect with which the object is associated.

expected Type

Expected object type.

actual Type

Actual object type.

Properties

Actual

Actual object type.

public Type Actual { get; }

Property Value

Type

Dialect

SQL dialect with which the object is associated.

public SqlDialect Dialect { get; }

Property Value

SqlDialect

Expected

Expected object type.

public Type Expected { get; }

Property Value

Type