关于Typed DataTable的自动编号字段

rouser 2003-04-20 11:52:23
我在构造一个强类型的数据表的时候出现了一个问题:我数据表中的自动编号的流水
号在这里怎么表示? 如果把它做成公有列并在TypedDataRow中定义成相应的属性的时
候,我在用户层定义把这个TypedDataRow add 到TypedDataTable的Rows里面的时候就
报错说那个流水号字段不能为空.

有什么好的解决方法吗?

Thank You!
...全文
102 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
rouser 2003-05-09
  • 打赏
  • 举报
回复
roger!
thx.
saucer 2003-04-26
  • 打赏
  • 举报
回复
make sure to set the corresponding column's AutoIncrement to true and set up proper AutoIncrementSeed and AutoIncrementStep

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧