A
ad
I am using vs2005 to desginer a tableadapter.
I have modify the update command in the desginer, but the update command is
not identical between the desginer.
For example:
The original update command is:
Update Employee set EmployeeID=@EmployeeID and EmployeeName=@EmployeeName
where EmployeeID=@Original_EmployeeID and
EmployeeName=@Original_EmployeeName
I change it in the designer to
Update Employee set EmployeeName=@EmployeeName where
EmployeeID=@Orginal_EmployeeID, and the count of parameter is 2.
But the commandtext in deginser.cs still remain the orginal become:
Update Employee set EmployeeName=@EmployeeName where
EmployeeID=@Orginal_EmployeeID ;
Select EmployeeID, EmployeeName form Employee where EmployeeID=@EmployeeID;
It also add a @EmployeeID parameter.
Why it add a select command below the update statement?
I have modify the update command in the desginer, but the update command is
not identical between the desginer.
For example:
The original update command is:
Update Employee set EmployeeID=@EmployeeID and EmployeeName=@EmployeeName
where EmployeeID=@Original_EmployeeID and
EmployeeName=@Original_EmployeeName
I change it in the designer to
Update Employee set EmployeeName=@EmployeeName where
EmployeeID=@Orginal_EmployeeID, and the count of parameter is 2.
But the commandtext in deginser.cs still remain the orginal become:
Update Employee set EmployeeName=@EmployeeName where
EmployeeID=@Orginal_EmployeeID ;
Select EmployeeID, EmployeeName form Employee where EmployeeID=@EmployeeID;
It also add a @EmployeeID parameter.
Why it add a select command below the update statement?