Skip to content

Update Entities.md#2271

Merged
hikalkan merged 2 commits intoabpframework:devfrom
seanalford:dev
Dec 2, 2019
Merged

Update Entities.md#2271
hikalkan merged 2 commits intoabpframework:devfrom
seanalford:dev

Conversation

@seanalford
Copy link
Copy Markdown
Contributor

No description provided.

@ismcagdas ismcagdas added this to the 1.1 milestone Nov 28, 2019
Comment thread docs/en/Entities.md Outdated
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
Copy Markdown
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