Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to compare dynamic objects array (Entity Type)?

$
0
0

I want to compare two dynamic (entity type from EF) objects array and I have to save data for the changed field's value.

But I can't compare the values at runtime . I have attached the code bellow. 

 public string CompareDataObject(dynamic oldObject, dynamic newObject)
        {
            foreach (var source in oldObject)
            {
                foreach (var destination in newObject)
                {
/*
Compare code
*/
                   }
        }
   }

It will be helpful form me if someone help me out to get the "Compare code" block.

Thanks

Tanvir.


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>