public IDbCommand GetCache(string strNomTable, ETypeRequete typeRequete) { CCacheRequetesForTable cache = null; if (m_dicPourTables.TryGetValue(strNomTable, out cache)) return cache.GetCache(typeRequete); return null; }
public IDbCommand GetCache(ETypeRequete typeRequete) { IDbCommand command = null; if (m_dicPourTable.TryGetValue(typeRequete, out command)) return CloneCommande(command); return null; }
public void SetCache(string strNomTable, ETypeRequete typeRequete, IDbCommand command) { CCacheRequetesForTable cache = null; if (!m_dicPourTables.TryGetValue(strNomTable, out cache)) { cache = new CCacheRequetesForTable(); m_dicPourTables[strNomTable] = cache; } cache.SetCache(typeRequete, command); }
public void SetCache(ETypeRequete typeRequete, IDbCommand command) { m_dicPourTable[typeRequete] = CloneCommande(command); }