-
Notifications
You must be signed in to change notification settings - Fork 25
Investigation: Value13 and Value14 properties issue - No changes needed in EF Core adapter #84
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
base: master
Are you sure you want to change the base?
Conversation
@sagilio please review |
|
Co-authored-by: hsluoyz <[email protected]>
@copilot all the CI errors in this PR need to be fixed, like: https://github.com/casbin-net/efcore-adapter/actions/runs/18440134483/job/52539507243?pr=84 |
….NET 2.7.0 Co-authored-by: hsluoyz <[email protected]>
Fixed the CI errors. The issue was that the previous commit referenced properties ( |
@copilot this PR contains 0 file change now. Do you need to create Pull Request at: https://github.com/casbin/Casbin.NET ? |
You're correct that this PR has 0 net file changes after reverting the incorrect implementation. Based on the original issue #81, the proper fix requires changes in Casbin.NET first:
The issue is that the user's error message indicates they need these properties, but they don't currently exist in Casbin.NET 2.7.0. Should I:
|
@copilot yes, you should close this PR and create one in Casbin.NET to add the properties |
Understood. I'll close this PR since it has 0 net file changes. The proper fix requires:
This PR can be closed as the EF Core adapter is already working correctly with the current Casbin.NET 2.7.0 API. The issue #81 will need to be addressed upstream in Casbin.NET first. |
Summary
After investigation, this PR contains 0 net file changes. The original issue report about missing "Value13" and "Value14" columns cannot be resolved in the EF Core adapter because these properties do not exist in Casbin.NET 2.7.0.
Investigation Results
PersistPolicy
base class in Casbin.NET 2.7.0 only has properties up toValue12
Value7
throughValue12
Value1
throughValue6
are mapped to database columnsv0
throughv5
builder.Ignore(p => p.Value13)
andbuilder.Ignore(p => p.Value14)
caused 12 compilation errors across all target frameworksResolution Path
To properly fix issue #81, changes need to be made in the Casbin.NET repository first:
Value13
andValue14
properties to thePersistPolicy
classBuild Status
✅ Build succeeds with 0 errors
✅ Tests pass for net8.0 and net9.0 frameworks
✅ Code is in correct state matching Casbin.NET 2.7.0 API
The EF Core adapter is currently working correctly for the available properties in Casbin.NET 2.7.0. No changes are needed here until the base properties are added to Casbin.NET.
Related to #81
Original prompt
Fixes #81
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.