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

Update Entities.md #2271

merged 2 commits into from
Dec 2, 2019

Conversation

seanalford
Copy link
Contributor

No description provided.

@ismcagdas ismcagdas added this to the 1.1 milestone Nov 28, 2019
@@ -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.

@hikalkan hikalkan merged commit a4e520d into abpframework:dev Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants