Skip to content

Commit f671053

Browse files
authored
Merge pull request #22789 from abpframework/auto-merge/rel-9-2/3698
Merge branch dev with rel-9.2
2 parents eb3728b + 7e62f51 commit f671053

File tree

1 file changed

+11
-1
lines changed
  • docs/en/framework/data/entity-framework-core

1 file changed

+11
-1
lines changed

docs/en/framework/data/entity-framework-core/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,17 @@ public static class QADbContextModelCreatingExtensions
755755
756756
> The `Object Extension` feature need the `Change Tracking`, which means you can't use the read-only repositories for the entities that have `extension properties(MapEfCoreProperty)`, Please see the [Repositories documentation](../../architecture/domain-driven-design/repositories.md) to learn the change tracking behavior.
757757
758-
See the "*ConfigureByConvention Method*" section above for more information.
758+
See the **ConfigureByConvention Method** section above for more information.
759+
760+
### Accessing Extra Properties(Shadow Properties)
761+
762+
Extra properties stored in separate fields in the database are known as **Shadow Properties**. These properties are not defined in the entity class, but are part of the EF Core model and can be referenced in LINQ queries using the EF.Property static method
763+
764+
```csharp
765+
var query = (await GetQueryableAsync()).Where(x => EF.Property<string>(x, "Title") == "MyTitle");
766+
```
767+
768+
See the [EF Core Shadow and Indexer Properties document](https://learn.microsoft.com/en-us/ef/core/modeling/shadow-properties) for more information.
759769

760770
## Advanced Topics
761771

0 commit comments

Comments
 (0)