Using Parts of GUID as ID

后端 未结 6 751
借酒劲吻你
借酒劲吻你 2021-01-18 21:40

I\'m developing an ASP .Net MVC application. One of my actions requires id as a parameter. For example:

public actionresult Detail(Guid id){
            


        
6条回答
  •  一生所求
    2021-01-18 22:20

    You can clean the GUID of -s and convert the HEX to Base32 (A-Z,0-5) which will shorten it to 16 characters.

提交回复
热议问题