PREFACE
One can find a description of the SQLite's "Prepared Statement" functionality here.
SQLite command (SQLite provider for .NET) has a method "Prepare" with the following description:
Summary: Does nothing. Commands are prepared as they are executed the first time, and kept in prepared state afterwards.
QUESTIONS
EDIT:
Just've found this, which partially answers my question. Nonetheless, if I need to build the DbCommand myself and then keep it somewhere, how can I use the command with Dapper?
It is entirely true to say that Dapper does not currently call Prepare().
You can read an extended explanation here
Long story short the main reason is: Dapper really, really doesn't want to store your connections, because it is designed with high concurrency in mind, and typically work in scenarios where the DbConnection is short-lived
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With