As the title said, here the snippet:

using (var db = new AccessData.Entities())
{
    ((IObjectContextAdapter)db).ObjectContext.CommandTimeout = 180;
    .......
}
Advertisements