Open dministro opened 1 year ago
Totally agree, do you want to submit a PR or let me know if I can fix this
Hmm, I don't see any obvious way to remove this dependency because yes ClearPool()
is specific to SqliteConnection
;)
As I see it, this can be done in YesSql
via IStore
since this is YesSql
's scope.
I can imagine one more method for IStore
:
public interface IStore : IDisposable
{
Task RemoveAsync(...);
}
The
ShellDbTablesRemovingHandler
depends on theDbConnection
implementation, this makes mocking and automated testing hard.See:
https://github.com/OrchardCMS/OrchardCore/blob/80c747468dd48038888b2634e3f5443e2d2d80c7/src/OrchardCore/OrchardCore.Data.YesSql/Removing/ShellDbTablesRemovingHandler.cs#L79-L85
It would be great if we could avoid direct depending on implementations.