16 เมษายน 2555 11:19
I am using linq to access data from Sharepoint lists that is easily accessable.
EntityList<MUserInfoItem> UserInfoList = dc.GetList<MUserInfoItem>(CNST_STR_USERINFO_List);
var Query2 = from UserInfo in UserInfoList.ToList()
i want to access data from Task type list . i have tried this
EntityList<MDRTasksTask> MDRTasks = dc.GetList<MDRTasksTask>(CNST_STR_MDRTasks_List);
var Query = from MDRTask in MDRTasks.ToList()
but it's not working .. any idea ?
16 เมษายน 2555 11:24Article http://blogs.msdn.com/b/sharepointdev/archive/2011/05/03/using-linq-to-sharepoint-with-choice-fields.aspx discusses how to do this. As an alternative, but related, approach, you may be interested in Camlex.NET: http://sharepointdragons.com/2012/04/06/camlex-net/