views:

21

answers:

1

Hello people,

Quick question. I want to generate code with SPMetal that includes the UniqueId field (the field that has the GUID for the list item), but somehow in Visual Studio I end up with either:

  • A list without that field
  • A list that in theory has that field (UniqueIdUniqueId.. why is it named that way?), but when I try to run it, throws me a NullException.

I'm using Sharepoint 2010, VS 2010.

Can you point me in the right direction? I'm stalled right now. I would paste you the XML file I've been using as parameters to SPMetal, but my servers are down right now. I'll post it ASAP, but if anyone has the answer on how to generate a class that includes that particular field, I'd be thankful.

Thanks!

A: 

The solution was: use the "GUID" hidden field. Duh.

Mr. Leinad