In NObject O/R Mapping persistence layer, after getting an object you can perform Delete method directly to delete object as follows:
|
Order order = Order.GetByOrderID(om, 10252); // ... order.Delete(); |
You can also use the method of primary key assignation to delete object without getting it, which will be more efficient as follows:
|
Order.DeleteByOrderID(om, 10252); |
Related Topics
Using NObject Object
Delete Object in Batches
Using Filter
Using OQL