private void CheckedIdentityVlaue() { var key = CoreUtils.GetKeyFiledName(((ExcutParBag_Insert)excutParBag).data); var value = CoreUtils.GetObjectPropertyValue(((ExcutParBag_Insert)excutParBag).data, key); var isIdentity = CoreUtils.CheckedIsIdentity(((ExcutParBag_Insert)excutParBag).data.GetType(), key); if ((isIdentity && value.ToSafeString("0") != "0")) { throw new Exception("违反主键自增长约束: Insert 语句具有主键自增长的ID,在插入的时候不能具有自增长值."); } }