Wiktor ← XrmToolkit Support and Feedback My feedback 4 results found Add basic handling of Environment Variables 3 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 0 comments · General · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Wiktor shared this idea · Feb 12, 2024 return an int of updated records in the Update method 3 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 1 comment · General · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment Wiktor commented · Nov 22, 2023 · Edit… · Delete… Hi Ahash, you could bypass this by using the IsDirty property. As you see, the Update only happens if there are changed values. So your code could look like this: var entitiesThatWillGetUpdatedCount = myEntities.Count(x => x.IsDirty); Save Submitting... Add support for JSON files 2 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 0 comments · General · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Wiktor supported this idea · Aug 2, 2022 Possibility of generating ProxyClasses with Properties-class only 7 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 0 comments · General · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Wiktor shared this idea · Jan 13, 2022
Hi Ahash,
you could bypass this by using the IsDirty property. As you see, the Update only happens if there are changed values. So your code could look like this:
var entitiesThatWillGetUpdatedCount = myEntities.Count(x => x.IsDirty);