public static void WithSubmit(Action <DownloadDataContext> op) { using (var db = new DownloadDataContext()) { op(db); db.SubmitChanges(); } }