浪淘沙

XSpin is blogged by xPilot & Janssen
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2005年8月30日

摘要: 帮一个朋友导数据时就发生自动编号的主键发生重复,花了我大半天的时间。累死了。给他们写了一个小工具,生成时间戳的代码:publicclassIdentityGenerator{privatestaticRandomrandom;publicstaticlongGetIdentity(){longid=(DateTime.Now.Ticks-(newDateTime(2000,1,1,0,0,0)))... 阅读全文

posted @ 2005-08-30 14:44 浪淘沙 阅读(6894) 评论(20) 推荐(0) 编辑