Skip to main content
A newer version of this page is available.
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

EFObjectSpace.GetSqlException(Exception) Method

Converts the passed Exception to an SqlException that is thrown when SQL Server returns a warning or error.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v20.2.dll

NuGet Package: DevExpress.ExpressApp.EF

Declaration

public static SqlException GetSqlException(
    Exception exception
)

Parameters

Name Type Description
exception Exception

An Exception error that occurs during application execution.

Returns

Type Description
SqlException

An SqlException that is thrown when SQL Server returns a warning or error.

See Also