How to determine if a PropertyType is foreign key
问题 I have the following class 'schakeling', generated with EF, representing a database table 'schakeling'. In the database 'id' is the primary key and 'plc_id' is a foreign key. public partial class schakeling { public schakeling() { this.verbruik = new HashSet<verbruik>(); } public int id { get; set; } public int plc_id { get; set; } public string var_output { get; set; } public string omschrijving { get; set; } public int vermogen { get; set; } public Nullable<bool> status { get; set; } public