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(); }
/// <summary> /// 清空缓存 /// </summary> public void FlushFunctionCaches() { PocoData.FlushCaches(); }
public Updates() : base(new MssqlDBTestProvider()) { PocoData.FlushCaches(); }
static PetaPocoSetup() { Db = new Database("TestConnection"); PocoData.FlushCaches(); }