version 1.0.2005.1 final (self-servicing)
VS2005 asp.net 2.0
hiya,
I have 2 tables
tblJobCategory
jobCategoryId PK
jobCategoryName
tblPerson
personId PK
jobCategoryIdOne (can contain null)
jobCategoryIdTwo (can contain null)
I need to filter the jobCategories, displaying ONLY the jobCategories that are present in
either
tblPerson.jobCategoryIdOne
or
tblPerson.jobCategoryIdTwo
the jobCategory id's in tblPerson will only come from tblJobCategory, but they are optional, and are therefore not foreign keys.
eg
tblJobCategory
jobCategoryId 1
jobCategoryName builder
tblJobCategory
jobCategoryId 2
jobCategoryName chef
tblJobCategory
jobCategoryId 3
jobCategoryName mechanic
if no-one in tblPerson has the jobCategoryId 3 (mechanic)
Then the jobCategory dropdown will only contain:
builder
chef
BusinessCategoryCollection cats = new BusinessCategoryCollection();
PredicateExpression filter = new PredicateExpression();
cats.GetMulti(filter)?????
I hope that makses sense.
many thanks,
yogi