Commit before adding Entity framework