Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
You can write a shared method on the OrdersBO that will get the count of the records within the database that have the given CustomersBO as their parent. Then, simply handle the BeforeDelete event of the CustomersBO and if the count of the method returns > 0 then, set e.Cancel = True and show an error message. That's the most efficient way to do it.
|