Business Rules

From RemObjects Software

Jump to: navigation, search

This is a Data Abstract Feature topic
Feel free to add your notes to this topic below.



Business rules are used to set the order in which updates are being applied when the server receives a delta from the client. If no update rules are specified, the deltas will be applied following the order the client set them when writing them into the stream.

If a delta contained in a stream does not have an associated update rule, it will still be processed by the Data Abstract service receiving it. If you want to change this behavior, set its ProcessAllDeltas property to false.

To define business rule used to process the delta associated with a data table of the schema use SchemaUpdateRule class.

Example

The Microsoft SQL Server Northwind sample database contains some checks that prevent records from the Orders table from being deleted until all the associated Order Detail rows have been deleted.

To have the updates for the Orders and Order Details tables applied successfully, you would create the following four Business Rules:

  • Delete Order Details
  • Delete Orders
  • Insert and update Orders
  • Insert and update Order Details

The order of the rules shown above has to be kept, as it dictates the order of processing of deltas.


See Also


Product: RemObjects Data Abstract
Current version: Data Abstract 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToDriversComponentsToolsSamplesArticlesArchitectureIssues

Personal tools