With SubSonic is there a way to express relationships without foreign keys?
问题 Our database does not have foreign keys, but we wish to be able to use SubSonic. Are there any ways except for foreign keys to express relationships between tables? Also see this related question 回答1: There are three possible solutions that come to my mind: a) The hard way: Do everthing yourself Every class that is generated by SubSonic is a partial class. You can create a new file and add the properties methods for ForeignKey relation yourself: partial class Order { private