Horking image


HORK Behavious

HORK allows the developer to control the behaviour of entities and database operations by using a set of Behaviour Properties.
Behavior Properties are enum values which can be added or removed from the DBContext singleton. When HORK has to save or load data, the behavious configured in DBContext will dictate how the data is saved or loaded.

HORK includes the following user-configurable behaviours:

When you start using HORK there are no behavior properties set. To use a behaviour property you need to add it to the DBContext, like this:

All operations which occur after this property is set will log SQL to the HORK log file.

When the property is no longer needed, it can just be removed from DBContext, like this: