AFAIK, this can't be done using criteria.

In HQL you can use ExecuteUpdate(), something like
session.CreateQuery("update Configuration config set 
config.YourProp=3").ExecuteUpdate()

 

________________________________________
Från: [email protected] [[email protected]] för Kminoru 
[[email protected]]
Skickat: den 20 juli 2010 15:17
Till: nhusers
Ämne: [nhusers] Set Property

Hi, how can i set a property value on criteria?
i´d have a select criteria that returns a list of configurations,
something like this:

.CreateAlias("Configuration", "config") _
.Add(Expression.Eq("config.Id", idConfig))

I´m doing a for each changing some values. I´d like to do this without
load on memory, directly on sql.

--
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to