I want to delete content (only data, but not the structure and foreign keys.) of all tables (all entities using Entity Framework 4+). How can this be done? I am using SQLCE and Entity framework with Visual Studio 2010.
entities.ExecuteStoreCommand("DELETE FROM TABLENAME");
Above query doesn't delete all rows. Later, I would also be using a where claused like
entities.ExecuteStoreCommand("DELETE FROM TABLENAME WHERE COL1=0");