uniqueidentifier Equivalent DataType In C#

后端 未结 4 796
悲哀的现实
悲哀的现实 2021-01-17 11:13

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

相关标签:
4条回答
  • 2021-01-17 11:41

    It should be System.Guid or Nullable<Guid>

    0 讨论(0)
  • 2021-01-17 11:46

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

    0 讨论(0)
  • 2021-01-17 12:00

    System.Guid.NewGuid()

    0 讨论(0)
  • 2021-01-17 12:04

    Use System.Guid

    Example :

        public string CustID { get; set; }
    
        public System.Guid ActivationCode { get; set;}
    
    0 讨论(0)
提交回复
热议问题