Skip to content

No exception is thrown when the database connection fails #2

@knox007

Description

@knox007

Today I found a problem, when the database connection is not available, for example, the network has been disconnected at this moment, the SqlConnection.OpenAsync() in the SqlConnectionFactory will not throw an exception correctly when multiple database connections are made. Even if you add try... catch is also impossible to catch and will eventually cause the entire program to terminate,How can this problem be solved?

Image
@TheCakeMonster

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions