I have a number of LINQ to SQL tables with the same fields (CreatedDate
and CreatedUser
).
I would like a usercontrol to display the values from these fields if the data is passed in as an IQueryable<T>
or IEnumerable<T>
For example:
public void UpdateStatus<T>(IQueryable<T> data)
{
DateTime? theDate = data.Single().CreatedDate; // doesn't work
string theUser = data.Single().CreatedUser;
}