Closed AsakusaRinne closed 1 year ago
@sagilio please review
plz add it as an option like:
We should avoid many parameters in the ctor method. Users can use like:
var e = new Enforcer(model, adapter){ AutoLoadPolicy = false; };
If we use the code above to initialize an enforcer, the assignment will be executed after the constructor. However, the LoadPolicy
behavior occurs in the constructor, which will ignore the assignment in the initializer list.
This feature is supposed to be submitted to preview
branch, as shown in #295 . This PR will be closed.
Change lazyLoadPolicy to AutoLoadPolicy to avoid ignore the filter when using filtered adapter.
Since it needs to be verified with
efcore-adapter
, it's currently in process now.