DCSIMG
SPMetal and Tasks List - itaysk

SPMetal and Tasks List

Posted Wednesday, March 31, 2010 1:32 AM by Itay Shakury

Another little bug (I think) with SPMetal (SharePoint 2010 Beta 2)..

I seems that Task lists are created of type “Microsoft.SharePoint.Linq.EntityList<Item>” instead of “Microsoft.SharePoint.Linq.EntityList<Task>”.

It’s kind of funny considering that it already generates the “Task” class perfectly, but doesn’t use it anywhere.

I solved this by manually fixing the code.
That is – Locating the Tasks list property, and changing the generic type to Task, and all of it’s dependencies.

task_list_spmetal

תגים:,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: