Try this:
private List<dataaccount> GetDataAccountDetails(string[] columns)
{
PIAEntities piaentity = new PIAEntities(strConn);
var nt = from p in piaentity.DataAccounts
where p.FollowUpRequired == true
&& p.PreviousOwener == UserName
&& p.FollowUpOn < DateTime.Now
select new{
Column1 = p.Column1,
Column2 = p.Column2,
Column3 = p.Column3,
Column4 = p.Column4,
};
var customList = MakeList(nt);
}
public static List<T> MakeList<T>(T itemOftype)
{
List<T> newList = new List<T>();
return newList;
}
--Amit