Skip to content

[release/8.0] Change error to warning for trigger defined on non-base type#32025

Merged
ajcvickers merged 1 commit intorelease/8.0from
231011_NotGoodButNoSoBad
Oct 12, 2023
Merged

[release/8.0] Change error to warning for trigger defined on non-base type#32025
ajcvickers merged 1 commit intorelease/8.0from
231011_NotGoodButNoSoBad

Conversation

@ajcvickers
Copy link
Copy Markdown
Contributor

Part of #31627

Description

In EF8, we introduced validation that triggers are not defined on a non-base type in a TPH hierarchy. However, our guidance for configuring triggers on every type violates this. Therefore, we are updating the error to a warning, since having the trigger defined doesn't do much harm and so is likely to have been working in the past. We are also updating the guidance for configuring triggers on every type.

Customer impact

Application that was working in EF7 will throw with EF8.

How found

Customer reported on preview.

Regression

Yes.

Testing

Updated tests.

Risk

Low.

… type

Part of #31627

### Description

In EF8, we introduced validation that triggers are not defined on a non-base type in a TPH hierarchy. However, our guidance for configuring triggers on every type violates this. Therefore, we are updating the error to a warning, since having the trigger defined doesn't do much harm and so is likely to have been working in the past. We are also updating the guidance for configuring triggers on every type.

### Customer impact

Application that was working in EF7 will throw with EF8.

### How found

Customer reported on preview.

### Regression

Yes.

### Testing

Updated tests.

### Risk

Low.
@ajcvickers ajcvickers requested a review from a team October 11, 2023 13:43
@ajcvickers ajcvickers added this to the 8.0.0 milestone Oct 11, 2023
@ajcvickers ajcvickers merged commit 33a597d into release/8.0 Oct 12, 2023
@ajcvickers ajcvickers deleted the 231011_NotGoodButNoSoBad branch October 12, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants