tags:

views:

145

answers:

1

Just wanted to know if there is a big chance to inject SQL While using nhibernate?

+7  A: 

If you're using the criteria generators then no. nHibernate is aware of the .Net types and is consequently able to handle all escaping for you when generating queries.

Unparameterized HQL is vulnerable however.

Spencer Ruport