Note: This will delete ALL records within the table. That is the same thing a ZAP used to do. If you want to delete within a certain crtiera, then just create a command or a sproc (as Keith mentioned) to delete within that group or records.
MicroFour.StrataFrame.Data.DataBasics.DataSources("").ExecuteStoredProcedure("rentitems_deleteitemsfororder", MicroFour.StrataFrame.Data.DbCommandExecutionType.ExecuteNonQuery, New SqlClient.SqlParameter("@ordnum", Me.BO_Orders.ordernum))
I have a a BO with related records and at some point I would like to delete all records in the BO pretty much like a VFP DELETE ALL or ZAP, how to do this?
I have tried using the BO's GetEnumerable() I saw in thread like this:
For
bo.DeleteCurrentRow(
But the above code is not deleting all rows in the BO, so I must be missing something here.