Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanMagnan/1ba3bd3228f85acb253fb69f14c5e828 to your computer and use it in GitHub Desktop.
Save JonathanMagnan/1ba3bd3228f85acb253fb69f14c5e828 to your computer and use it in GitHub Desktop.
using (var ctx = new EntitiesContext())
{
ctx.BulkSaveChanges(operation =>
{
operation.RetryCount = 3;
});
}
using (var ctx = new EntitiesContext())
{
ctx.BulkSaveChanges(operation =>
{
operation.RetryCount = 3;
operation.RetryInterval = new TimeSpan(100);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment