BulkRead: only read certain properties
Is it possible to to only read cetain properties with the BulkRead function? I am trying to find a solution to load a single property based on the Id of the entity.
You can use PropertiesToInclude or PropertiesToExclude, more info in ReadMe.
You can use PropertiesToInclude or PropertiesToExclude, more info in ReadMe.
That is indeed what I was trying to do without any success.
The function call:

And the actual sql query being executed where AddressableId shouldn't be included:

I am using version 3.6.1 of EFCore.BulkExtensions
You are correct, only in memory excluded are skipped but from Db it selects all. Will consider if this could be improved.
Would also love this, useful to reload ids only.
You are correct, only in memory excluded are skipped but from Db it selects all. Will consider if this could be improved.
Perhaps you could give me a quick description of what'd need to be done? I might take a peek if its not too complicated and i have some spare time during the weekends.
Is there a chance it was working in version 3.1?