SqlErrorConstraintType enumeration
namespace: Serenity.Services.SqlErrors assembly: Serenity.Net.Services
Type of a database constraint violation.
public enum SqlErrorConstraintType
Values
| name | value | description |
|---|---|---|
| PrimaryKey | 0 |
A primary key violation. |
| Unique | 1 |
A unique constraint or unique index violation. |
| ForeignKey | 2 |
A foreign key violation. |
| NotNull | 3 |
A not null constraint violation. |
See Also
- Source: SqlErrorConstraintType.cs