I am working on a C# project with Entity Framework Core 5. I have a trigger which raises an error:
RAISERROR ('Conflict column bla bla bla.', 10, 1)
In the debug I see following:
How can I get the custom message?
I am working on a C# project with Entity Framework Core 5. I have a trigger which raises an error:
RAISERROR ('Conflict column bla bla bla.', 10, 1)
In the debug I see following:
How can I get the custom message?
Copyright © 2021 Jogjafile Inc.

As suggested by @Gert Arnold, using
THROWinstead ofRAISERRORfixed the problem: