| 
					
						 Hey thanks. But please check to see if NHibernate query processing logic has changed since then. I mean, the way NHibernate generates "brackets" around criteria.
 
 I captured INSERT and UPDATE statements. It uses paramters regardless and no injection is possible under any circumstances.
 
 1. UPDATE statement:
 
 UPDATE inv_delivery SET deliver_date = @p0, deliver_from = @p1, waybill_no = @p2, at_consignee = @p3, remarks = @p4, CreateBy = @p5, CreateDate = @p6, LastUpdateBy = @p7, LastUpdateDate = @p8 WHERE deliver_id = @p9', @p0 = 'Dec  2 2005 12:00:00:000AM', @p1 = N'south asia', @p2 = N'hello123', @p3 = N'mis', @p4 = N'def'' --', @p5 = 115, @p6 = 'Dec  6 2005  2:49:00:000PM', @p7 = 115, @p8 = 'Dec  8 2005  9:44:48:000AM', @p9 = 783
 
 2. INSERT statement:
 
 INSERT INTO inv_delivery (deliver_date, deliver_from, waybill_no, at_consignee, remarks, CreateBy, CreateDate, LastUpdateBy, LastUpdateDate) VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8); select SCOPE_IDENTITY()', @p0 = 'Dec  8 2005 12:00:00:000AM', @p1 = N'aaa', @p2 = N'bbb', @p3 = N'ccc', @p4 = N'ddd', @p5 = 115, @p6 = 'Dec  8 2005  9:46:54:000AM', @p7 = 0, @p8 = NULL 
					
  
						
					 |