SubSonic 3 ActiveRecord流利查询多个联接

| 我正在尝试对从第一次联接引用的第二列进行多次联接。因此,实际上可以找到产品在哪个商店。
var q = new MyDB().SelectColumns(Store.NameColumn)
.From<Product>()
.InnerJoin<Shelf>(Product.ShelfIdColumn, Shelf.IdColumn)
.InnerJoin<Store>(Shelf.StoreIdColumn, Store.IdColumn)
.Where(Product.IdColumn).IsEqualTo(5);
问题在于SubSonic试图将Store表直接连接到Product表。我在源代码中看到了评论:
//the assumption here is that the FromTable[0] is the table to join from
因此,将在“产品”表上尝试进行每个联接。 2.1可以为联接传递合格名称。有没有解决的办法,还是应该开始编写自己的修复程序以允许我再次输入合格的名称?     
已邀请:

要回复问题请先登录注册