Can Entity Framework Core 2 return array or List of int from stored procedure

entity-framework-core

Question

Is it possible to execute a stored procedure that returns an array or list of integers using Entity Framework Core 2?

For example I usually would call;

context.<entities>.FromSql("proc", "params");

However, this would map directly to the core entity which would throw an error as it would not be able to map non-nullable fields.

Is there any way I can do this?

1
0
4/12/2018 5:12:42 PM

Popular Answer

It’s not supported as of now. There is already an open issue for this, you can track it here.

0
4/12/2018 7:14:30 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow