Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

datatable iqueryable c# linq

            DataTable dataTable = GetDataTable();
 
                var importdata = from row in dataTable.AsEnumerable()
                            select new ImportRow()
                            {
                                GroupExtID = row.Field<int>(SubjectsImportStructure.PID),
                                ExtID = row.Field<int>(SubjectsImportStructure.ID),
                                Condition = row.Field<int>(SubjectsImportStructure.Condition),
                                IC = row.Field<string>(SubjectsImportStructure.IC),
                                RC = row.Field<string>(SubjectsImportStructure.RC),
                            };
 
            IQueryable<IImportRow> data = importdata as IQueryable<IImportRow>;
Source by wiki.borovicka.name #
 
PREVIOUS NEXT
Tagged: #datatable #iqueryable #linq
ADD COMMENT
Topic
Name
5+8 =