需要用EF来做多表删除,需要判断有没有其他表在使用需要删除的数据,如果在使用则该数据不删除
Your EF, do you mean Microsoft .NET Entity Framework? You can simply check the Cascade attribute for the tables. https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete