-
Notifications
You must be signed in to change notification settings - Fork 0
056 Modeling Composite Lookup Resource Entities for PhbkEmployee
chempkovsky edited this page May 30, 2022
·
6 revisions
- We say that a Lookup Resource is Composite if it has more than one search property.
- We are going to create a lookup resource for three scalar properties:
EmpLastName
EmpFirstName
EmpSecondName
- the end user can define a partial filter
- for one prop:
EmpLastName
- for two prop:
EmpLastName
andEmpFirstName
- for one prop:
- According to the requirements 033 we need to create three lookup dictionary-table and two lookup refs-table. (The number of the lookup refs-tables depends on the number of the foreign keys)
- each dictionary table table
- should have two columns:
- row id column with a primary key on it
- data column with a unique key on it
- the name of the data column must be the same as column name of the
PhbkEmployee
-table
- should have two columns:
- Naming prefix for the lookup dictionary-tables will be
Lpd
(which means lookup dictionary) - Naming prefix for the lookup refs-tables will be
Lpr
(which means lookup refs)
-
LpdEmpLastName
will be the name of the dictionary table