我正在使用 IdeaBlade 3.6 版。我注意到以下生成的 SQL 更新查询:
(@P1 nchar(32),@P2 nvarchar(32),@P3 nvarchar(512),@P4 nchar(32),@P5 int,@P6 nvarchar(32),@P7 int,@P8 日期时间,@P9日期时间,@P10 日期时间,@P11 整数,@P12 日期时间,@P13 整数,@P14 整数,@P15 整数,@P16 nvarchar(32),@P17 nvarchar(128),@P18 nvarchar(32),@P19 nvarchar (32),@P20 日期时间,@P21 日期时间,@P22 位,@P23 nvarchar(32),@P24 nvarchar(64),@P25 nchar(32))更新 "dbo"."GSS_Documents" 设置 "DocumentID"= @P1,"FileName"=@P2,"FilePath"=@P3,"BusinessOfficeID"=@P4,"Pages"=@P5,"FileSize"=@P6,"DocumentType"=@P7,"DateCreated"=@ P8,"EffectiveDateCreated"=@P9,"DateProcessed"=@P10,"ProcessorID"=@P11,"DateReviewed"=@P12,"ReviewerID"=@P13,"WorkflowStatus"=@P14,"ApprovalStatus"=@P15 ,“帐号”=@P16,"AccountName"=@P17,"SerialNumber"=@P18,"TransactionID"=@P19,"CriticalDate"=@P20,"EmergencyDate"=@P21,"GenerateSMSALert"=@P22,"CustomerPhoneNumber"= @P23,"CustomerEmailAddress"=@P24 其中"DocumentID"=@P25
问题是 DocumentID 是主键。此更新似乎也在更新主键!关于如何阻止这种情况的任何想法?