Skip to content

Instantly share code, notes, and snippets.

@phatty
Forked from anonymous/SQL_EntityContext
Created August 24, 2013 06:55
Show Gist options
  • Save phatty/6326531 to your computer and use it in GitHub Desktop.
Save phatty/6326531 to your computer and use it in GitHub Desktop.
var objCtx = ((System.Data.Entity.Infrastructure.IObjectContextAdapter)Context).ObjectContext;
objCtx.ExecuteStoreCommand("TRUNCATE TABLE [ServiceArgs]");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment