I think that Entity Framework does not have a good support for stored procedure. I would like to have a better stored procedure mapper.
The problem is : my stored procedure have an IF
statement. Inside the IF
, I'm doing the SELECT
. When my code does not get inside the IF
, the stored procedure does not select data. When I don't select data, Entity Framework's autogenerated code crashes.