Best way is executing an update HQL statement:

http://ayende.com/Blog/archive/2009/05/28/nhibernate-ndash-executable-dml.aspx

using the execute callback is the straight forward way:

http://www.castleproject.org/ActiveRecord/documentation/v1rc1/usersguide/hql.html

On Sep 14, 9:43 pm, Gustavo Melo <[email protected]> wrote:
> I have a table (user)
>
> [ActiveRecord("user")]
> public class User : ActiveRecordBase
> {
>         [PrimaryKey(PrimaryKeyType.Assigned, "usu_id")]
>         public string Id { get; set; }
>
>         [Property("name", NotNull = true)]
>         public string Login { get; set; }
>
> }
>
> How do i update all users in the table for name = "Test" ?
>
> I didn't find on web or documantation...
>
> Some1 can help me?
>
> Best Regards
--~--~---------~--~----~------------~-------~--~----~
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