ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
表单子表数据删除前执行,主要用来检查数据是否可以删除 **返回值** string,正常返回值为空,如果不为空,会抛出异常,异常信息就是返回值 **参数** | 名称 | 类型 | 描述 |非空 | --- | --- | --- |--- | | objContext| Entities| 数据库上下文 |是 | uid| int|当前操作用户ID |是 | formId| int|表单ID |是 | bizId| int|主表业务数据ID |是 | firstNewDetailId| int |新插入的第一条子表数据ID |是 | existsChildIds| string |未删除的子表数据ID |是 | tableName| string |子表表名 |是 | refColName| string |关联主表字段名|是 | filter| string |表单加载子表数据时的附件过滤条件 |是 **示例** ``` public static string BeforeDeletingEntityColumn(Entities objContext, int uid, int formId, int bizId, int firstNewDetailId, string existsChildIds, string tableName, string refColName, string filter) { return null; } ```