1.增加与更新使用的同是save方法。
例一个:
TInspectionMethodControl tnsm = null;
在增加的功能时,是通过new来实体化的:tnsm = new TInspectionMethodControl();
在更新的时候,是通过获取实体,比如说是下面的
tnsm = IinsControlMethod.GetInsControlMethodSingle(_InspecitonType.Trim(), _subMCode.Trim(), _InspectionLevel.Trim(), _AQL.Trim());
例一个:
TInspectionMethodControl tnsm = null;
在增加的功能时,是通过new来实体化的:tnsm = new TInspectionMethodControl();
在更新的时候,是通过获取实体,比如说是下面的
tnsm = IinsControlMethod.GetInsControlMethodSingle(_InspecitonType.Trim(), _subMCode.Trim(), _InspectionLevel.Trim(), _AQL.Trim());
2.在获取单个实例的时候,如果老是报索引超出界限,排除了实体与数据库不一致的外在原因之后,则用下列方法可解决
