var ids = dt.AsEnumerable().Select(r => r.Field<int>("id")).ToList();