Entity Framework - SQL Azure Retry Policy

前端 未结 5 1397
春和景丽
春和景丽 2020-12-31 05:20

Could anyone guide me how to implement a retry policy with EF to SQL Azure, please.

5条回答
  •  离开以前
    2020-12-31 05:49

    Entity Framework 6 has added connection resiliency as a new feature to help address this, quoting from Microsoft: "enables automatic recovery from transient connection failures". Here is the Connection Resiliency Spec for EF6 if you want to learn more.

    EF6 at NuGet

提交回复
热议问题