AR doesn't know about BindingLists and Grids. Have the list call
entity.Delete() or ActiveRecordMediator<Entity>.Delete(entity).

-Markus

2009/4/7 vekaz <[email protected]>

>
> Hi,
>
> First day with ActiveRecord, hence the noobish question:
> How do I delete a record, without querying database to find out which
> rows were deleted?
>
> I am using BindingList and when a row is deleted from the grid, it
> disappears from the BindingList, but calling
> flush() does not delete them from database. flush() is supposed to do
> that, right?
> I am using MS Sql Server.
>
> Please help, I'm in a great hurry with this.
>
> Thanks in advance.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to