Beispiel #1
0
        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;
        }
Beispiel #2
0
 public ArkanisDBContext() : base(MultipleDbConfiguration.GetMySqlConnection(ArkanisConnectionString), true)
 {
     this.Configuration.LazyLoadingEnabled = false;
     this.Database.CommandTimeout          = 60;
 }