Skip to content

Commit

Permalink
Merge pull request #2271 from seanalford/dev
Browse files Browse the repository at this point in the history
Update Entities.md
  • Loading branch information
hikalkan authored Dec 2, 2019
2 parents 46c98e3 + ad32a75 commit a4e520d
Showing 1 changed file with 2 additions and 1 deletion.
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 use `IRepository<TEntity>`. See [repositories documentation](Repositories.md) for more.

### AggregateRoot Class

Expand Down

0 comments on commit a4e520d

Please sign in to comment.