0

This is probably a simple solution but I am just trying out LightSwitch for the first time. The problem that I am running into is that I have a table called Job that needs 2 employees tied to it. There are 2 types of employees, Operators and Auditors defined in the EmployeeTypes Table. In my Jobs table I am trying to add the related table employees twice and have it only accept the certain type of employee. I hope this makes sense, to clarify I have added a screenshot of how it is working now, and how I want it to work.

How would I go about doing this? The only way I know how to do it at the moment through lightswitch is to create a table for each employee type, but this seems counter-productive and a bad way to design the database because the only difference in each employee type is the employeetype itself. Please let me know if you have any ideas on how this would work.

Screenshot

4

1 回答 1

0

好吧,这只是一个不知道如何正确使用界面的情况。为了让它发挥作用,我完全按照原样离开了桌子。在屏幕编辑器上,我删除了两个员工数据字段并用两个新数据项替换它们,您可以在其中指定将它们绑定到哪个查询。

解决方案

于 2014-03-11T15:07:23.477 回答