ChangeTrackingEntitySetWithNotifyT Method

This is used to raise the PropertyChanging and PropertyChanged events if the new value does not equal the current property's value

Definition

Namespace: EWSoftware.EntityFramework
Assembly: EWSoftware.EntityFramework (in EWSoftware.EntityFramework.dll) Version: 2025.11.12.0
protected void SetWithNotify<T>(
	T value,
	ref T field,
	string propertyName = ""
)

Parameters

value  T
The new value
field  T
A reference to the field containing the current value that will receive the new value
propertyName  String  (Optional)
The property name that changed. This defaults to the calling member's name if not specified

Type Parameters

T
The property type

See Also