asp.net - Linq dbml show int return type for an SP which SP return some fields from temporary table -
i have written stored procedure return fields temporary table create in stored procedure. when include in dbml file show return type of stored procedure int. should not returning field table although temporary.
linq-to-sql uses sql server "fmtonly" setting determine return type stored procedures. avoid having stored procedures make changes database inadvertedly when getting signature.
if stored procedure safe execute no param values etc, can add "set fmtonly off;" in beginning of procedure. linq-to-sql able correctly identify return type stored proc.
Comments
Post a Comment