EnterpriseLibrary 2005 vs 2006... The difference is obvious

Aug 6 2006 8:33 AM
Hi all! I have to migrate code written from the EnterpriseLibrary 01/2005 to EnterpriseLibrary 01/2006 Here an example before/after...
2005 DataSet ds = SqlHelper.ExecuteDataset(ConString, CommandType.StoredProcedure, "MySPName", new SqlParameter("@ParamName", ParamValue);
2006 Database db = DatabaseFactory.CreateDatabase(); DbCommand dbCommand = db.GetSqlStringCommand("MySPName"); dbCommand.CommandType = CommandType.StoredProcedure; db.AddInParameter(dbCommand, "ParamName", DbType.String, ParamValue); DataSet ds = db.ExecuteDataSet(dbCommand);
5 lines instead of 1! Is it a better way or i need to make my own wrapper.
Thanks for help :)