Tutorial :uniqueidentifier Equivalent DataType In C#



Question:

what is uniqueidentifier (Sql server 2005) equivalent in C# 3.5 datatype ?


Solution:1

It should be System.Guid or Nullable<Guid>


Solution:2

There is a page on MSDN called Mapping CLR Parameter Data that answers your question and other similar questions you might have.


Solution:3

System.Guid.NewGuid()


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »