コード例 #1
0
 /// <summary>
 /// Initialize a new TestProjectEntities object with an audit modifier.
 /// </summary>
 public TestProjectEntities(string connectionString) :
     base()
 {
     _connectionString   = connectionString;
     InstanceKey         = Guid.NewGuid();
     _contextStartup     = new ContextStartup(null, true);
     this.CommandTimeout = _contextStartup.CommandTimeout;
     this.OnContextCreated();
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new TestProjectEntities object with an audit modifier.
 /// </summary>
 public TestProjectEntities(ContextStartup contextStartup) :
     base()
 {
     _connectionString   = ConfigurationManager.ConnectionStrings["TestProjectEntities"]?.ConnectionString;
     InstanceKey         = Guid.NewGuid();
     _contextStartup     = contextStartup;
     this.CommandTimeout = _contextStartup.CommandTimeout;
     this.OnContextCreated();
 }