Esempio n. 1
0
 private static void FlushCaches()
 {
     // Whenever a mapper is registered or revoked, we have to assume any generated code is no longer valid.
     // Since this should be a rare occurrence, the simplest approach is to simply dump everything and start over.
     MultiPocoFactory.FlushCaches();
     PocoData.FlushCaches();
 }
Esempio n. 2
0
 /// <summary>
 /// 清空缓存
 /// </summary>
 public void FlushFunctionCaches()
 {
     PocoData.FlushCaches();
 }
Esempio n. 3
0
 public Updates()
     : base(new MssqlDBTestProvider())
 {
     PocoData.FlushCaches();
 }
 static PetaPocoSetup()
 {
     Db = new Database("TestConnection");
     PocoData.FlushCaches();
 }