Change Tracking EntitySet With NotifyT 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
Assembly: EWSoftware.EntityFramework (in EWSoftware.EntityFramework.dll) Version: 2025.11.12.0
C#
protected void SetWithNotify<T>(
T value,
ref T field,
string propertyName = ""
)
VB
Protected Sub SetWithNotify(Of T) (
value As T,
ByRef field As T,
Optional propertyName As String = ""
)C++
protected:
generic<typename T>
void SetWithNotify(
T value,
T% field,
String^ propertyName = L""
)F#
member SetWithNotify :
value : 'T *
field : 'T byref *
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName ""
*)
-> unit 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