You probably want ISession.Load(object id) ISession.Load(...) returns a proxy of the object that you can then update but it does NOT actually query the DB to return actual data first (unlike ISession.Get(...) which first queries the DB to retrieve the data for the entity).
Google a bit for more info on the difference between .Load(...) and .Get(...) and you will see examples of this distinction. HTH, -Steve B. On Aug 9, 11:51 am, osman nuri katib <[email protected]> wrote: > Hello everybody, > I want to update a persistent record in database(MS sql 2008) and ı dont > want to select the record. > > Is there another way from "session.CreateSqlQuery()" > > please help? > > thanks.. -- 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.
