uniqueidentifier Equivalent DataType In C#

怎甘沉沦 提交于 2019-12-30 17:07:18

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!