Hi, I am using fluent nhibernate.
I have written a piece of code like,
var data = session.CreateCriteria(typeof(CustomerNameValueList))
.Add(Expression.Eq("CustomerId","3"))
.List<CustomerNameValueList>();
but the query generated by nhibernate is looks like
select column1,column2,column3 from table where CustomerId=?
problem is with "customerId=?" expeted : CustomerId=3"
why customerId=? rather than customerId=3
please help me.