问题
what is uniqueidentifier (Sql server 2005) equivalent in C# 3.5 datatype ?
回答1:
It should be System.Guid or Nullable<Guid>
回答2:
There is a page on MSDN called Mapping CLR Parameter Data that answers your question and other similar questions you might have.
回答3:
System.Guid.NewGuid()
回答4:
Use System.Guid
Example :
public string CustID { get; set; }
public System.Guid ActivationCode { get; set;}
来源:https://stackoverflow.com/questions/2743700/uniqueidentifier-equivalent-datatype-in-c-sharp