¿Dónde está el método ExecuteStoreCommand en Entity Framework 5?
Estoy usando EF5 en VS2012, e intento eliminar todos los datos de alguna tabla usando ExecuteStoreCommand
,
algo como esto:
ctx.ExecuteStoreCommand("TRUNCATE TABLE [" + tableName + "]");
Pero el problema es EF me está diciendo, método ExecuteStoreCommand no encontrado. No puedo entender ¿por qué?
¿Puedes decirme por qué?, o me dan una solución de rendimiento eliminar todos los datos de la tabla.
28
1 answers
Prueba esto:
ctx.Database.ExecuteSqlCommand
82
Author: Justin Harvey,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-12-13 09:59:24
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-12-13 09:59:24