It seems no such feature is available. The command timeout is set by DriverBase, based on the value in the configuration, and currently it is not possible to override this. You can subclass your driver, override GenerateCommand(), call base.GenerateCommand() and then set a different timeout for that command. But you would have to find a way to communicate the "current" timeout to the driver at a suitable point in time.
Note that SaveOrUpdate() will not necessarily cause any SQL to be executed immediately - it depends on several factors. /Oskar 2012/10/4 viblo <[email protected]> > Hi all! > > I want to set a lower than default CommandTimeout for a specific call to > Session.SaveOrUpdate(myentity) in NHibernate. Is that possible and if so > how to do it?I tried googling around but I couldnt find anything related to > saves, only selects. > > Thanks, > Victor > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/nhusers/-/qQ7yPeHoSHIJ. > 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.
