How to know what got modified in an Object?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi Guys,
How to know that which variable/ property got modified (of policytransactionmodel instance ) to return true in the below snippet?
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="color:#2b91af; font-family:Consolas; font-size:13px; line-height:normal PolicyTransactionModel and PolicyUnderwriterModel are two diff. classes.<span style="color:#2b91af; font-family:Consolas; font-size:13px; line-height:normal <span style="font-size:9.5pt; font-family:Consolas; color:blue
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas; color:blue
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas; color:blue private<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue bool<span style="font-size:9.5pt; font-family:Consolas HasChanges<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas {<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue get<span style="font-size:9.5pt; font-family:Consolas <span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas {<span style="font-family:Consolas; font-size:9.5pt
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue foreach<span style="font-size:9.5pt; font-family:Consolas (<span style="font-size:9.5pt; font-family:Consolas; color:blue var<span style="font-size:9.5pt; font-family:Consolas key <span style="font-size:9.5pt; font-family:Consolas; color:blue in<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue new<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:#2b91af List<span style="font-size:9.5pt; font-family:Consolas <<span style="font-size:9.5pt; font-family:Consolas; color:#2b91af Type<span style="font-size:9.5pt; font-family:Consolas >
{<span style="font-size:9.5pt; font-family:Consolas; color:blue typeof<span style="font-size:9.5pt; font-family:Consolas (<span style="font-size:9.5pt; font-family:Consolas; color:#2b91af PolicyUnderwriterModel<span style="font-size:9.5pt; font-family:Consolas ), <span style="font-size:9.5pt; font-family:Consolas; color:blue typeof<span style="font-size:9.5pt; font-family:Consolas (<span style="font-size:9.5pt; font-family:Consolas; color:#2b91af PolicyTransactionModel<span style="font-size:9.5pt; font-family:Consolas )})<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas {<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue if<span style="font-size:9.5pt; font-family:Consolas (!ModelDictionary.ContainsKey(<wbr>key))<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas {<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue throw<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue new<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:#2b91af JBSApplicationException<span style="font-size:9.5pt; font-family:Consolas (<span style="font-size:9.5pt; font-family:Consolas; color:blue string<span style="font-size:9.5pt; font-family:Consolas <wbr>.Format(<span style="font-size:9.5pt; font-family:Consolas; color:#a31515 "ModelDictionary
doesnt have <span style="font-size:9.5pt; font-family:Consolas; color:#3cb371 {0}<span style="font-size:9.5pt; font-family:Consolas; color:#a31515 "<span style="font-size:9.5pt; font-family:Consolas , key));<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas }<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue if<span style="font-size:9.5pt; font-family:Consolas (ModelDictionary[key].<wbr>HasChanges)<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas {<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue return<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue true<span style="font-size:9.5pt; font-family:Consolas ;
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="text-decoration:underline <span style="white-space:pre // returns true when key=PolicyTransactionModel.
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas }<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas }<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue return<span style="font-size:9.5pt; font-family:Consolas <span style="font-size:9.5pt; font-family:Consolas; color:blue false<span style="font-size:9.5pt; font-family:Consolas ;<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas }<span style="text-decoration:underline <span style="text-decoration:underline
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas }
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="font-size:9.5pt; font-family:Consolas
<br/>
PolicyTransactionModel has fields like<br/>
_policyTransactionModelid , _policyTransactionModelVersion etc.
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="color:#2b91af; font-family:Consolas; font-size:13px; line-height:normal <span style="color:#2b91af; font-family:Consolas; font-size:13px; line-height:normal
<p style="margin-bottom:0px; color:#222222; font-family:arial,sans-serif; font-size:13px; line-height:normal
<span style="color:#2b91af; font-family:Consolas; font-size:13px; line-height:normal kindly Help.<span style="font-size:9.5pt; font-family:Consolas <hr class="sig Lalit

View the full article
 
Back
Top