Skip to content

Commit 64fbfd2

Browse files
authored
doc: add limitations (#2484)
Added a sentence indicating that shadow properties cannot be accessed if the entity returned as no-tracking
1 parent e4ae2dc commit 64fbfd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

entity-framework/core/modeling/shadow-properties.md

+2
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ Shadow properties can be referenced in LINQ queries via the `EF.Property` static
4141
var blogs = context.Blogs
4242
.OrderBy(b => EF.Property<DateTime>(b, "LastUpdated"));
4343
```
44+
45+
Shadow properties cannot be accessed after a no-tracking query since the entities returned are not tracked by the change tracker.

0 commit comments

Comments
 (0)