I have a stored procedure and I whant to return an uniqueidentifier. So I declared an uniqueidentifier as OUTPUT. But then I “dragd and dropped” it do my LINQ to SQL DataClass and it would not recognize my returntype. It only recognized int or my linq classes.
How should I return the uniqueidentifier so I can use it with LINQ?
I found an explanation of how to return a uniqueidentifier. It contains some examples on returning the Guid.
There is also a question on SO regarding this issue:
LINQ to SQL entity column name attribute ignored with guid primary key