Linq mapp table to list<int> : I am using c# and Enterprise Library to retrieve data from Store Procedure.

I am using Linq to mapp Table to Entity like this.

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    List<ActivitySearchEntity> result = db.ExecuteDataSet(dbCommand).Tables[0].AsEnumerable().ToList().ConvertAll(dr => new ActivitySearchEntity
                    {
                        Activity_Id = Convert.ToInt32(dr["Activity_ID"].ToString()),
                        User_id = Convert.ToInt32(dr["User_ID"].ToString())
                    });

<!-- end snippet -->

It Works fine...

when I mapp to entity it works fine, what I need is to mapp to al List<int>

     List<ActivitySearchEntity> result = db.ExecuteDataSet(dbCommand).Tables[0].AsEnumerable().ToList<int>()

or somethig like this.. but it does not work.

How can I mapp to an `List<int>`



