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

Ask: No entity class dynamic table #798

Open
qq1176914912 opened this issue Oct 24, 2024 · 1 comment
Open

Ask: No entity class dynamic table #798

qq1176914912 opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@qq1176914912
Copy link

Hello bother, I have a question I would like to consult, that is, there is a dynamic table, the table name is not fixed, but the internal structure and column name are the same, because there is no entity class, I added a method like this in the StoreDbContext.cs of your project:
image
CasbinPolicy because they all have the same internal structure so I use this for data reception.
But to delete and other operations made difficult, other tables are directly can _dbContext. remvoe, but now this table has no entity class, I do not want to continue to use sql statements, because it is not safe, do you have any good method?

@simpleidserver simpleidserver self-assigned this Oct 26, 2024
@simpleidserver simpleidserver added the question Further information is requested label Oct 26, 2024
@simpleidserver
Copy link
Owner

Hello,

I made a naive implementation in the branch "Ticket798" to support your scenario.
Can-you take a look ?

68e538c

KR,

SI

@simpleidserver simpleidserver closed this as completed by moving to Done in Release 5.0.3 Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants