Say I have a query like:
session.CreateCriteria(typeof(Category)) .Add( Expression.Like("Name", someVariable) );
WHere someVariable was taken from the querystring, do I have to do checks against sql injection or will nhibernate handle this?
Say I have a query like:
session.CreateCriteria(typeof(Category)) .Add( Expression.Like("Name", someVariable) );
WHere someVariable was taken from the querystring, do I have to do checks against sql injection or will nhibernate handle this?
it's handled for you, but to be sure try to do an sql injection, just to prove it's ok.