public DataSet ExecuteQuery(string Command, List<DbParameter> Parameters, CommandType Type) { . . . }I'm trying to use it like this:
public static bool DeleteCategory(int CategoryKey) { SqlParameter pRecordKey = new SqlParameter("@CategoryKey", CategoryKey); List<SqlParameter> colParams = new List<SqlParameter>(); colParams.Add(pRecordKey); try { DataSet ds = DataProcs.ExecuteQuery("as_RemoveCategory", colParams, CommandType.StoredProcedure); } catch (Exception e) { throw; } }It won't compile. Getting:
The best overloaded method match for 'Marois.Common.DataAccess.DataAccess.ExecuteQuery(string, string, System.Collections.Generic.List<System.Data.Common.DbParameter>)' has some invalid argumentsI thought that since the class is using DbParameters that I could pass SqlParamaters since SqlParameter inherits from System.Data.Common.DbParameter.