I have a SQL stored procedure and I need to be able to pass a NULL as a value to one of its parameters to be used in a query like this:
create procedure sp
    @param1 varchar(30)
as
select * from table where field = isnull(@param1, field)
So I need to some how tell EF to make @param1 nullable.  How do I do this?
Thanks!
In case it helps, the process I use with EF is:
- Create SP
 - Update Model (edmx)
 - Add new function import
 - Generate new complex type by clicking the button
 - Run Custom Tool on separate template file (to generate POCO)