Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Entities.md #2271

Merged
merged 2 commits into from
Dec 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/en/Entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ Entities with composite keys should implement the `GetKeys()` method as shown ab

Notice that you also need to define keys of the entity in your **object-relational mapping** (ORM) configuration.

> Composite primary keys has a restriction with repositories. Since it has not known Id property, you can not use `IRepository<TEntity, TKey>` for these entities. However, you can always use `IRepository<TEntity>`. See [repositories documentation](Repositories.md) for more.
> Also note that Entities with Composite Primary Keys cannot utilize the `IRepository<TEntity, TKey>` interface since it requires a single unique Id property. However, you can always implement `IRepository<TEntity>`. See [repositories documentation](Repositories.md) for more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"you can always implement" should be "you can always use", because as you know ABP has generic interfaces already implemented. You can implement it yourself, yes, but it is not so common.



### AggregateRoot Class

Expand Down