If you’re using DbContext, you’ll first need to drop down to ObjectContext:
((IObjectContextAdapter)context).ObjectContext.CommandTimeout = 180;
If you’re using DbContext, you’ll first need to drop down to ObjectContext:
((IObjectContextAdapter)context).ObjectContext.CommandTimeout = 180;