IMutationContext ..
Describes the context in which mutation is performed.
Namespace: Dado.ComponentModel.DataMutations
Implements: System.IServiceProvider (in System.ComponentModel)
public interface IMutationContext : IServiceProviderIt supports IServiceProvider so that custom mutation code can acquire additional services to help it perform its mutation.
| Name | Description |
|---|---|
| Attributes | Gets the attributes associated with this context. |
| Items | Gets the dictionary of key/value pairs associated with this context. |
| ObjectInstance | Gets the instance being mutated. |
| Name | Description |
|---|---|
| GetService(Type) | Gets the service object of the specified type. |
Gets the attributes associated with this context.
IEnumerable<Attribute> Attributes { get; }- Type
- System.Collections.Generic<System.Attribute>
Gets the dictionary of key/value pairs associated with this context.
IDictionary<object, object> Items { get; }- Type
- System.Collections.Generic.IDictionary<System.Object, System.Object>
Gets the instance being mutated.
object ObjectInstance { get; }- Type
- System.Object
Gets the service object of the specified type.
object GetService(
Type serviceType
)A service object of type serviceType or null if there is no service object of type serviceType.
- serviceType
- Type: System.Type
An object that specifies the type of service object to get.