SQL Server unique-identifier equivalent in C#

Asad picture Asad · Jan 27, 2010 · Viewed 17k times · Source

What datatype should I use in C# to work with the SQL Server uniqueidentifier.

Do I need any conversions etc ?

Answer

codekaizen picture codekaizen · Jan 27, 2010

System.Guid

No conversions needed.