当我在android中设置按钮的背景时,单击按钮显示效果消失,我将此主题用作我的父主题System.Linq.Expressions
我正在为foreach (var property in typeof(DiagTab).GetProperties())
{
string name = property.Name;
if (name == "ID_Diag") { continue; } // no column 1 and 2
if (name == "Reponse") { continue; }
// selector = (DiagTab source) => (int)source.Property
var source = Expression.Parameter(typeof(DiagTab), "source");
var selector = Expression.Lambda<Func<DiagTab, int>>(
Expression.Convert(Expression.Property(source, property), typeof(int)),
source);
int sum = db.DiagTabs.Sum(selector);
dictionary.Add(name, sum);
}