Beispiel #1
0
 /// <summary>
 /// Allows child classes to pass the connection string to be used for the
 /// connection during construction
 /// </summary>
 /// <param name="connectionString"></param>
 public SqlDataAccess(string connectionString, IParameterCreation parameterFactory)
 {
     if (parameterFactory == null)
     {
         throw new ArgumentNullException("parameterFactory");
     }
     this.connectionString = connectionString;
     _parameterFactory     = parameterFactory;
 }
 /// <summary>
 /// Allows child classes to pass the connection string to be used for the
 /// connection during construction
 /// </summary>
 /// <param name="connectionString"></param>
 public SqlDataAccess(string connectionString, IParameterCreation parameterFactory)
 {
     if (parameterFactory == null) throw new ArgumentNullException("parameterFactory");
     this.connectionString = connectionString;
     _parameterFactory = parameterFactory;
 }