日期:2014-05-17 浏览次数:20879 次
string CompareWord = "SystemStatus"; var status = from sys in GetTable<T_SYSTEMSTATUS>() join enu in GetTable<T_ENUMMETADATA>() on sys.systemstatus equals enu.enumvalueresult where enu.enumvalueresult == CompareWord select new { enu.enumvaluelabel };
select b.enumvaluelabel from t_systemstatus a , t_enummetadata b where a.systemstatus=b.enumvalueresult and b.enumvaluetype='SystemStatus';
var status = from sys in GetTable<T_SYSTEMSTATUS>() join enu in GetTable<T_ENUMMETADATA>() on sys.systemstatus equals enu.enumvalueresult where enu.enumvalueresult == CompareWord select new { o = enu.enumvaluelabel} ;