0
我有许多具有相同字段的LINQ to SQL表(CreatedDate
和CreatedUser
)。 我想一个用户控件如果数据被传递作为IQueryable<T>
或IEnumerable<T>
用户控件显示来自多个LINQ表的字段
例如从这些字段显示的值:
public void UpdateStatus<T>(IQueryable<T> data)
{
DateTime? theDate = data.Single().CreatedDate; // doesn't work
string theUser = data.Single().CreatedUser;
}