public static void TruncateErrorLogs() { string cnnString = CreateEntitiesConnectionString(); using (BMIKidsEntities e = new BMIKidsEntities(cnnString)) { e.ExecuteStoreCommand("Truncate Table ErrorLogs"); } }