private string GetTableName(string entityName) { if (tableNameCache.ContainsKey(entityName)) { return(tableNameCache[entityName]); } string tableName = edmx.GetTableName(entityName); tableNameCache.Add(entityName, tableName); return(tableName); }