T model = new T();
PropertyInfo[] propertys = model.GetType().GetProperties();
foreach (PropertyInfo pi in propertys)
{
if (type == typeof(object))//T是dymamic
type = datasource.FirstOrDefault().GetType();
}