Sorry! It came from a user defined class. I have been going through the codes and still cannot see why it would need 2 arguments based on my first post.. strange.
public class Delete
{
String from;
AndList where = new AndList();
public Delete(String table)
{
from = table;
}
public Delete add(Expression e)
{
if (e != null)
where.add(e);
return this;
}
public Delete add(OrList e)
{
if (e != null && e.count > 0)
where.add(e);
return this;
}
public Delete add(AndList e)
{
if (e != null && e.count > 0)
where.add(e);
return this;
}
public override string ToString()
{
StringBuilder str = new StringBuilder();
str.Append("DELETE FROM ").Append(from);
if (where.count > 0)
{
str.Append(" WHERE ");
str.Append(where);
}
return str.ToString();
}
}
vchany
Member
23 Points
32 Posts
Re: Deleting a row from the database (Oracle.DataAccess)
Mar 22, 2012 07:54 AM|LINK
Sorry! It came from a user defined class. I have been going through the codes and still cannot see why it would need 2 arguments based on my first post.. strange.
public class Delete { String from; AndList where = new AndList(); public Delete(String table) { from = table; } public Delete add(Expression e) { if (e != null) where.add(e); return this; } public Delete add(OrList e) { if (e != null && e.count > 0) where.add(e); return this; } public Delete add(AndList e) { if (e != null && e.count > 0) where.add(e); return this; } public override string ToString() { StringBuilder str = new StringBuilder(); str.Append("DELETE FROM ").Append(from); if (where.count > 0) { str.Append(" WHERE "); str.Append(where); } return str.ToString(); } }