The PetaPoco.Database object implements IDisposable but I rarely if ever see code samples (including on PetaPoco's own website) that include a using statement as follows:
using (var db = new Database("MyConnectionString"))
{
// Do database stuff
}
Most often I simply see:
var db = new Database("MyConnectionString");
// Do database stuff
// I never see .Dispose() called.
How should PetaPoco.Database objects actually be handed?
AppDomain
is destroyed with the program. – Olivier