コード例 #1
0
 public MyContext() : base(ContextHelper.CreateConnection("my connection string"), true)
 {
     ((IObjectContextAdapter)this).ObjectContext.CommandTimeout = 300;
 }
コード例 #2
0
 public MyDatabase()
     : base(ContextHelper.CreateConnection("Connection string"), true)
 {
     ((IObjectContextAdapter)this).ObjectContext.CommandTimeout = 180;
 }