Entity Framework calling MAX on null on Records

前端 未结 9 1567
傲寒
傲寒 2020-12-08 09:29

When calling Max() on an IQueryable and there are zero records I get the following exception.

The cast to value type \'Int32\' failed because the materialize

9条回答
提交回复
热议问题