SqlServer生成Guid如何格式化,在线求解~~C# codeprivate string GenerateStringID(){long i 1foreach (
SqlServer生成Guid如何格式化,在线求解~~
C# code
private string GenerateStringID() { long i = 1; foreach (byte b in Guid.NewGuid().ToByteArray()) { i *= ((int)b + 1); } return string.Format("{0:x}", i - DateTime.Now.Ticks); }