Here's a real good one. I'm trying to build a way for administrators to group users by many different properties. We are calling them "Positions", but it's a little more involved than just their job title.
It is based on the "Smart Playlist" style of iTunes where you can choose the EntityType, select the field that you want to filter, select a "like, in, not in, equals, not equals" dropdownlist, then enter the filter parameters.
I have the basic table layout set up to store these, but I don't know how I would set this up in LLBLGenPro's Self Servicing Generated Code. Here's my table layout:
Position
ID - PK, Identity
Name (and some other fields)
Entity - lists the entity types that can be filtered
ID - PK, Identity
Name - e.g., Location
LLBLName - Name of the entity, such as LocationEntity
EntityFields - lists the fields in an entity that can be filtered
ID - PK, Identity
EntityID - FK to Entity
LLBLFieldName - FieldIndex of the Entity
PositionParams
ID - PK, Identity
PositionID - FK to Position
EntityFieldID - FK to EntityFields
EnumFilterType - FK to FilterType
ParamValue - value from the textbox
How would I be able to define a query (TypedListDAO) that would return the result set that I want? Has anyone any ideas on how I would be able to do this?
If this is not a good approach, I would like to get some constructive criticism on my design