Petapoco: Operation could destabilize the runtime
问题 I am trying to use Petapoco's multi-poco query. The code works fine on my local machine running .NET 4.6.1 but throws System.Security.VerificationException when deployed to the hosting I am using which is running .NET 4.5. Snipppet from PetaPoco/Database.cs:2253 while (true) { TRet poco; try { if (!r.Read()) break; poco = factory(r, cb); // <-- The exception happens here } catch (Exception x) { if (OnException(x)) throw; yield break; } if (poco != null) yield return poco; else bNeedTerminator