pvekshyn

Results 3 comments of pvekshyn

Ah, I got the idea, you are trying to avoid exception when the enumerable is empty. This is not correct, better catch exception in this case.

Let's say I have any source of enumerable: db reader, http returning IAsyncEnumerable, grpc streaming, whatever And I want to pass it to TVP without collecting the whole List in...

Great, thank you P.S. on a second thought catching the exception is a bad idea, because sql will not be executed and caller should know about that