我曾经知道如何做到这一点,但我想我忘了,我想在我的模型中添加一个引用另一个表中另一列的列,因为它的值应该始终是staff表中的值之一。 。
像这样...... public class Customer
( public list<Staff> list{get;set;}
..)
public class Staff
( public int ID {get;set:}...)
this class also contains name and that is the value I want to pull into this other entity if that makes sense..