dotnet / dotnet/EntityFramework.Docs

DatabaseGeneratedOption.Computed giving type mismatch when a trigger runs

Open
#4,819 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

### Type of issue

Code doesn't work

### Description

[Enter feedback here]
DatabaseGeneratedOption.Computed giving type mismatch when a trigger runs. The trigger does not update the table or reference the field but it means that EF code cannot save!

### Page URL

https://learn.microsoft.com/en-us/ef/core/modeling/generated-properties?tabs=data-annotations

### Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/generated-properties.md

### Document Version Independent Id

ec833af2-275e-981f-689f-8c65edfc00cd

### Article author

@AndriySvyryd

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.