NULL ForeignKeyTo property in Subsonic 3/ASP.NET MVC?
- by chad
Issue: the primary key of the base table is named differently than the the key in the fk table.
Subsonic 3 does not know how to handle that, which is fine, its beta. So I was going to change the Html.ControlFor logic to just grab the table and use the pkname from that:
var fk = db.FindTable(col.ForeignKeyTo.FriendlyName);
However the .ForeignKeyTo is null. Where in the templates does that ITable get populated?