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

IdentityUser adds navigation properties #19586

Open
1 task done
1957993455 opened this issue Apr 20, 2024 · 1 comment
Open
1 task done

IdentityUser adds navigation properties #19586

1957993455 opened this issue Apr 20, 2024 · 1 comment

Comments

@1957993455
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

现在我想在IdentityUser中添加一个集合public ICollection<Post> Posts { get; set; } ,但是好像不能继承IdentityUser这个类,所有我用abp框架的对象拓展功能来实现一个用户对应多个post的关系,我不知道如何实现,我搜索了,但是好像都不太正确,或者说文章和用户不用配置这个关系,能给我一个解决方案吗?我不太了解这个框架

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

8.1

User Interface

MVC

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

现在我想在IdentityUser中添加一个集合public ICollection<Post> Posts { get; set; } ,但是好像不能继承IdentityUser这个类,所有我用abp框架的对象拓展功能来实现一个用户对应多个post的关系,我不知道如何实现,我搜索了,但是好像都不太正确,或者说文章和用户不用配置这个关系,能给我一个解决方案吗?我不太了解这个框架

@realLiangshiwei
Copy link
Member

This is not a bug, and you can configure one to many relationships between Posts and IdentityUser entities
https://learn.microsoft.com/en-us/ef/core/modeling/relationships/one-to-many

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants