public andonContext(string nameOrConnectionString) : base(MultipleDbConfiguration.GetMySqlConnection(nameOrConnectionString), true) { var objectContext = (this as IObjectContextAdapter).ObjectContext; // Sets the command timeout for all the commands objectContext.CommandTimeout = 500; }
public ArkanisDBContext() : base(MultipleDbConfiguration.GetMySqlConnection(ArkanisConnectionString), true) { this.Configuration.LazyLoadingEnabled = false; this.Database.CommandTimeout = 60; }