-1
我已经编写了一个从数据库中删除记录的方法。如何检查记录是否已被删除
Public Overrides Sub Delete(ByVal intDeletingUserID As Integer, Optional ByVal blnLogChanges As Boolean = True)
If BLMonitor.CountByCustomer(Customer_ID) = 0 And _
BLComplaint.CountByCustomer(Customer_ID) = 0 And _
BLRecommendation.CountByCustomer(Customer_ID) = 0 And _
BLPublicFeedback.CountByCustomer(Customer_ID) = 0 And _
BLCustomer.CountFeedbackAndReferences(Customer_ID).Rows.Count = 0 Then
MyBase.Delete(intDeletingUserID, blnLogChanges)
Else
End Sub
我需要向用户显示当我实现此方法时是否可以删除记录。