Browse Source

Merge pull request #24160 from abpframework/auto-merge/rel-10-0/4125

Merge branch dev with rel-10.0
pull/24169/head
Ma Liming 11 months ago
committed by GitHub
parent
commit
f712e85133
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs/en/framework/architecture/domain-driven-design/repositories.md

4
docs/en/framework/architecture/domain-driven-design/repositories.md

@ -254,6 +254,10 @@ ABP uses dynamic proxying to make these attributes work. There are some rules he
> Change tracking behavior doesn't affect tracking entity objects returned from `InsertAsync` and `UpdateAsync` methods. The objects returned from these methods are always tracked (if the underlying provider has the change tracking feature) and any change you make to these objects are saved into the database.
#### Check If Change Tracking Is Enabled
In case of you need to check if change tracking is enabled or disabled on a repository object, you can simply read the `IsChangeTrackingEnabled` property. It is `false` by default for read only repositories (see the *Read Only Repositories* section below). It is `null` by default for other repository objects. If it is `null`, change tracking is enabled unless you've explicitly used the change tracking attributes (see the *Attributes for Change Tracking* section).
## Other Generic Repository Types
Standard `IRepository<TEntity, TKey>` interface exposes the standard `IQueryable<TEntity>` and you can freely query using the standard LINQ methods. This is fine for most of the applications. However, some ORM providers or database systems may not support standard `IQueryable` interface. If you want to use such providers, you can't rely on the `IQueryable`.

Loading…
Cancel
Save