Hello,
I have the following criteria defined -
Code:
return _session.CreateCriteria(typeof(parent))
.Add(Expression.Eq("parent_field","data"))
.CreateCriteria("child",NHibernate.SqlCommand.JoinType.LeftOuterJoin)
.Add(Expression.IsNull("child_field"))
.SetMaxResults(25)
.List<parent>();
When I run this code, I am getting the folowing error -
{"OleDbCommand.Prepare method requires all variable length parameters to have an explicitly set non-zero Size."}
If I remove the second line where I put a parameter on the parent table, it runs fine.
Does anyone have any idea what is happening?