【发布时间】:2012-09-12 06:49:44
【问题描述】:
FitNesse/dbFit 是否支持插入具有单个标识列的表中,然后将该值返回到变量中?
例如:
create table TestTable ( ID int identity(1,1) )
!|Insert|TestTable|
|ID? |
|>>TestID |
导致以下异常:
System.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near ')'.
还有其他方法可以做到这一点吗?
【问题讨论】:
-
另外,有多个表需要执行此操作,因此我不能有多个“set identity_insert on”语句。
标签: sql testing integration-testing fitnesse dbfit