public virtual void Delete(string table, string colname, params object[] parms)
{
var sb = new StringBuilder("DELETE FROM " + table + " WHERE " + colname + " IN ( ");
for (var i = 0; i < parms.Length; i++)
{
sb.Append("@p" + i.ToString() + ",");
}
sb.Append(")");
sb.Remove(sb.Length - 2, 1);
db.Database.ExecuteSqlCommand(sb.ToString(), parms);
}