/// <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(); }
/// <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(); }