我有Medals类,我调用一个返回所有Medal类字段的服务,除了两个字段ArabicName和ISOCode;我必须从另一个桌子类#34; CountrysTBLs" ,我做了这个加入代码:
奖章类:
SELECT
R.release_id, GC.cnt total
FROM
(SELECT group_id, COUNT(*) cnt FROM release GROUP BY group_id) GC
JOIN release R
ON GC.group_id = R.group_id
代码:
public class Medals {
public int bronze_count { get; set; }
public string country_name { get; set; }
public int gold_count { get; set; }
public string id { get; set; }
public int place { get; set; }
public int silver_count { get; set; }
public int total_count { get; set; }
public string ArabicName { get; set; } // this field not return by service
public string ISOCode { get; set; } // this field not return by service
}
我没有结果?!
如何解决这个问题?是否有任何方法可以使两个字段(ISOCode,ArabicName)甚至不使用内连接,同时最佳性能?