Denna,
You better avoid deleting data from DB directly. You may end up with
an inconsistent object graph ... and generally if you work in the ORM
object space, why bother with SQL.
So just get a hold of an object in question and then do:
dataContext.deleteObject(object);
dataContext.commitChanges()
Andrus
On Jun 6, 2005, at 11:51 AM, Dhruti Ramani wrote:
> Hi,
>
> I have to remove a DoListItem whose type is 'xyz' for particular
> Deal (so basically query uses two tables). How do I delete that
> particular object? I was trying to use SQLTemplate but it returns
> Map so i can not bind that to particular object.
>
> Any ideal?
> Thanks,
> Denna
This archive was generated by hypermail 2.0.0 : Mon Jun 06 2005 - 15:56:44 EDT