locked
Compare two class object instances to see if the variables are different RRS feed

  • Question

  • User-1982615125 posted

    for example, i have two object instances of the same Customer Class.

    one is an updated version of the other, and i want to check if anything has changed. to prevent unnecesary IO operations and to not save it when its not different. because every save costs 7 milliseconds. saving 10.000 models would be taking 1 minute 10 seconds.

    so can i see if they are different without checking each variable field?

    For example, what does this do? or is this what im looking for? and has this unwanted side effects?

    If Custumer1 = customer2

    End if

    Monday, May 28, 2018 1:07 AM

All replies