📅  最后修改于: 2022-03-11 14:48:48.641000             🧑  作者: Mango
DataTable dataTable = GetDataTable();
var importdata = from row in dataTable.AsEnumerable()
select new ImportRow()
{
GroupExtID = row.Field(SubjectsImportStructure.PID),
ExtID = row.Field(SubjectsImportStructure.ID),
Condition = row.Field(SubjectsImportStructure.Condition),
IC = row.Field(SubjectsImportStructure.IC),
RC = row.Field(SubjectsImportStructure.RC),
};
IQueryable data = importdata as IQueryable;