Thinktecture.EntityFrameworkCore icon indicating copy to clipboard operation
Thinktecture.EntityFrameworkCore copied to clipboard

Unable to exclude shadow properties from bulk updates

Open kev24uk opened this issue 5 months ago • 1 comments

Hello, I have been using the BulkInsertOrUpdateAsync method on a project and for the most part it works great!

I have come across one snag however where I have a shadow property on my entity (which is actually an identity property and therefore cannot be inserted or updated).

Since the IEntityPropertiesProvider.Exclude<T> method takes in a projection, I could not find a way to provide a shadow property which doesn't exist on the entity class to the exclude.

Is there a way around this or could this be added?

Thanks!

kev24uk avatar Sep 12 '24 16:09 kev24uk