Automatically produce user-friendly response messages in behaviors for Save and Delete operations that fail due to a violation of a SQL Server foreign key or unique constraint. This behavior can be controlled with the DetailedEfConstraintExceptionMessages setting in .AddCoalesce(c => c.Configure(o => { ... })), or by overriding StandardBehaviors.GetExceptionResult. This is not a substitute for adding proper validation or other handling of related entities - it only exists to provide a better user experience in cases where the developer has forgotten to handle these situations. This behavior does respect Coalesce's security model and won't produce descriptions of types or values that the user is not allowed to see.
Automatically produce user-friendly response messages in behaviors for Save and Delete operations that fail due to a violation of a SQL Server foreign key or unique constraint. This behavior can be controlled with the
DetailedEfConstraintExceptionMessages
setting in.AddCoalesce(c => c.Configure(o => { ... }))
, or by overridingStandardBehaviors.GetExceptionResult
. This is not a substitute for adding proper validation or other handling of related entities - it only exists to provide a better user experience in cases where the developer has forgotten to handle these situations. This behavior does respect Coalesce's security model and won't produce descriptions of types or values that the user is not allowed to see.