Tra*_*s J 3 c# entity-framework-4.1
是否可以设置自动增量字段的值?如果使用主键5删除记录,但当前的自动增量计数为10,是否有任何方法可以重新插入该记录,其主键仍保持为5(而不是11)?我试图用C#中的Entity Framework 4.1来做这件事.
我想你也可以用
Set Identity_Insert TableName ON
Update your Id value
Set Identity_Insert TableName OFF
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
844 次 |
| 最近记录: |