Enableretryonfailure Entity Framework, So it usually works out of the box without even needing you to adjust it.