Esempio n. 1
0
 public DbAccessTest()
 {
     _connectionString = ConfigurationHelper.GetConnectionString();
     _dbAccess         = DbAccessFactory.Build(() => new SqlConnection(_connectionString));
 }
Esempio n. 2
0
 /// <summary>
 /// Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection.
 /// </summary>
 public DataSet ExecuteDataset(string commandText)
 {
     return(DbAccessFactory.Create().ExecuteDataset(commandText));
 }