Skip to content

SqlErrorValidationTexts class

namespace: Serenity.Services.SqlErrors   assembly: Serenity.Net.Services

Validation error texts for database constraint violations.

public static class SqlErrorValidationTexts

Public Members

name description
static readonly DeleteForeignKeyError Text for a foreign key violation that occurs while deleting a record, when the referencing table is known.
static readonly DeleteForeignKeyErrorGeneric Text for a foreign key violation that occurs while deleting a record, when the referencing table is not known.
static readonly SaveForeignKeyError Text for a foreign key violation that occurs while saving a record, when the referenced table is known.
static readonly SaveForeignKeyErrorGeneric Text for a foreign key violation that occurs while saving a record, when the referenced table is not known.
static readonly SavePrimaryKeyError Text for a primary key or unique constraint violation while saving a record, when the field is known.
static readonly SavePrimaryKeyErrorGeneric Text for a primary key or unique constraint violation while saving a record, when the field is not known.

See Also