...
Thus a bindable domain object has two useful traits:
...
- form can automatically render controls for each
of the domain object's properties
The obvious route to implement such a hybrid is multiple inheritance, but the bindable domain object is one of several cases where mixin technology is used.
...
The BindableDomainObject
class
re-bindform's BindableDomainObject
class exposes an IBusinessObject
interface and is based on DomainObject
. You will probably use this class a lot. However, it should be noted, that you could write your own implementation for the IBusinessObject
interface and mix YOUR IBusinessObject
interface with DomainObject
to arrive at a class MyBindableDomainObject
. You don't depend on re-bind's BindableDomainObject
. The method of re-motion mixinsmix are explained in Fabian Schmied's blog.