01-05-2010 11:02 AM
So I am able to create a filter to Contacts of a certain type, but am unable to filter that type out and leave everyone else behind.
IRepository<IContact> repository = EntityFactory.GetRepository<IContact>();
IQueryable qry = (IQueryable)repository;
IExpressionFactory ef = qry.GetExpressionFactory();
ICriteria criteria = qry.CreateCriteria();
result = criteria.List<IContact>();
I assumed it was just criteria.Add(ef.Ne("Type", Patient)); but its not working and the member descriptions in the API are not there.
Solved! Go to Solution.