Closed shayura closed 3 months ago
@sagilio @xcaptain @huazhikui
The release of Casbin.Adapter.EFCore
and Casbin.AspNetCore
is only work for Casbin.NET v1.
I will release 2.x versions of them that are compatible with the Casbin.NET v2 this year.
@shayura Casbin.AspNetCore and Casbin.Adapter.EFCore latest versions have supported Casbin.NET 2.x now.
I'm using Casbin.NET v2 in order to take advantage of
EnforcerContext
(please see #240 for reference.) I've noticed that neither EFCore Adapter nor the AspNetCore extension work with this version of the tool because the assembly name change fromCasbinNet
to justCasbin
.This is the specific error the compiler is spewing out:
I'm still new to Microsoft's .NET stack and the C# language. It's completely possible that I misunderstood the meaning of this error, but I did notice the namespace change.
Unless there's a way to query query the enforcer for
pN
rules, I can't afford to downgrade to the previous version of Casbin.NET. Do you have any advice?The error is happening with this code
when using the following versions of the Casbin packages: