Hi,
I've got a database table (AgentTask) with 3 columns:
agentId (FK to Agent table)
numberOfHouses
housesType
where:
- numberOfHouses is a (possibly negative) integer,
- housesType is related to lookup table
This works as follows:
if numberOfHouses > 0 then the entry is treated as a taskAssigned
if numberOfHouses < 0 then the entry is treated as taskSolved
Question:
I'm using adapter model, is there anyway I could breakdown AgentActivity entity so that given an agent I can easy access taskAssigned (or taskSolved)? Or perhaps I could also take into account housesType column and have entity taskAssignedSemiDetached ?
In SQL this would look like that:
select * from AgentTask where
where agentID = @agentID and numberOfHouses > 0 and
housesType = 2 /* for semi detached */
I'm a LLBLGen newbie, so speak slowly, please
Thanks,
Piotr