DevEn.Xrm.Observables is a library that provides an observable entity class for tracking changes to attributes and allowing subscriptions to attribute changes. This library is built on top of Microsoft.Xrm.Sdk and targets .NET Framework 4.8.
- Track changes to entity attributes.
- Subscribe to attribute changes with delegates.
- Implicit conversions between
ObservableEntityandEntity.
You can create an ObservableEntity from an existing entity or by specifying a logical name.
You can access and modify attributes using the indexer or the GetValue and SetValue methods.
You can subscribe to attribute changes using the AddOnChange method and unsubscribe using the RemoveOnChange method.
You can manually invoke all change delegates or specific delegates for a given attribute.
ObservableEntity supports implicit conversions to and from Entity and logical names.
The library includes unit tests to ensure the functionality of the ObservableEntity class. Below are some examples of the unit tests.
The library also includes integration tests to ensure the overall functionality of the ObservableEntity class.