select id from employees where parentid is null
1. Create a CRetrieveCriteria and use CEmployees as the classmap.
2. Add a selectequalto to the where condition and pass parentid as the attribute and Nothing as the value (vb syntax).
Eg: Dim rc as new CRetrieveCriteria rc.ClassMap = emp.getClassMap rc.WhereCondition.addSelectEqualTo("ParentID",Nothing)
- Richard.
Log in to post a comment.
select id from employees where parentid is null
1. Create a CRetrieveCriteria and use CEmployees as the classmap.
2. Add a selectequalto to the where condition and pass parentid as the attribute and Nothing as the value (vb syntax).
Eg:
Dim rc as new CRetrieveCriteria
rc.ClassMap = emp.getClassMap
rc.WhereCondition.addSelectEqualTo("ParentID",Nothing)
- Richard.