Oasis.EntityFrameworkCore.Interceptors Library provides a generic extension of Microsoft.EntityFrameworkCore.DbContext, which provides a certain feature added by Microsoft.EntityFrameworkCore.DbContextOptionsBuilder, and exposes a handle for controller behavior of the feature using GetHandle method.
Oasis.EntityFrameworkCore.Interceptors has 2 core validations implemented
- It's constructor will throw System.InvalidOperationException if same type of handle is declared multiple times in generic parameters
- GetHandle will throw a System.InvalidOperationException if caller tries to get a handle type that is not supported by the implementation