/// <exception cref="ArgumentNullException"></exception> public DataContext(string connectionString, DbProviderFactory factory) { ConnectionString = connectionString.ThrowIfNullOrWhiteSpace(paramName: nameof(connectionString)); _factory = factory.ThrowIfNull(paramName: nameof(factory)); //KeepConnectionAlive = true; }