c# - Entity Framework Code First and SQL Azure Connections -


where can find sample of managing connection retries using sql azure , ef 4.1 code first dbcontext? have found plenty of information on should doing , why, here examples:

the trouble these refer objectcontext , can't figure out how make similar code work dbcontext without upsetting ef.

i not familliar code-first approach, know can instantiate dbcontext sql connection in constructor, use microsoft's customer advisory reliable sql connection implementation. connection has retry policy handles required retry logic need.

another option can do, implementation of dbcontext can implement retry logic on each call. again, check out cat team's implementation on how best that.


Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -