Faster way to delete a table
this way I can delete a table:
context.Entities.DeleteAllOnSubmit(context.Entities);
context.SubmitChanges();
But it seems it is too slow. I saw another way here in SO:
context.ExecuteCommand("DELETE FROM Entity");
context doesn't have ExecuteCommand, it is removed or something? (context
is an instance of a class derived from DataContext)
How can I remove a table in LINQ to SQL?
No comments:
Post a Comment