You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to #138, in this comment, cleaning and/or rebuilding the solution fixes the cache-not-updating issue. This does not work for me.
If I define a new stored procedure in the same database, and then clean/rebuild, the Intellisense does not find the updated database's newly added stored procedure in the SqlProgrammabilityProvider, even if I try modifying my web.config file's connection string and back or modifying the code to make it break and then changing it back.
Repro steps
Please provide the steps required to reproduce the problem
Create a stored procedure to fetch some data.
Create a project that uses SqlProgrammabilityProvider to access that stored procedure.
Create a new stored procedure to fetch different data from the same table.
Clean and rebuild the solution.
Observe that the Intellisense does not update to allow you to switch to the new stored procedure. Compilation fails with error...
FS0039 "The type <\identifier> is not defined. Maybe you want one of the following: ..."
...when attempting to reference the stored procedure name in <typename>.dbo.<identifier> type associated with the stored procedure (because it does not recognize the identifier).
Expected behavior
There is an expected workflow to update autocompletion/compilation options to recognize new stored procedures when they are defined. Be it auto-updating or cleaning/rebuilding the project/solution to refresh the cache.
Actual behavior
No such cache-refreshes are occurring.
Known workarounds
Could potentially use the SqlCommandProvider to execute the stored procedures, but that doesn't bring with it the same kind of intellisense support which is the whole reason we started using the SqlProgrammabilityProvider in the first place. Our team exclusively uses stored procedures to interact with our database.
Related information
Windows 10
Whatever the stable release currently on nuget is (version 2.0.2)
SQL Server 13.0.5081.1, a production database at my work
.NET Framework 4.5.2
Visual Studio 2017 Community Edition
The text was updated successfully, but these errors were encountered:
Nevermind, it was just my own brainfart. Forgot to grant execute on the stored procedures and thought I already had, so, naturally, it didn't show up as an executable behavior in the SqlProgrammabilityProvider. Closing.
Description
According to #138, in this comment, cleaning and/or rebuilding the solution fixes the cache-not-updating issue. This does not work for me.
If I define a new stored procedure in the same database, and then clean/rebuild, the Intellisense does not find the updated database's newly added stored procedure in the SqlProgrammabilityProvider, even if I try modifying my web.config file's connection string and back or modifying the code to make it break and then changing it back.
Repro steps
Please provide the steps required to reproduce the problem
Create a stored procedure to fetch some data.
Create a project that uses SqlProgrammabilityProvider to access that stored procedure.
Create a new stored procedure to fetch different data from the same table.
Clean and rebuild the solution.
Observe that the Intellisense does not update to allow you to switch to the new stored procedure. Compilation fails with error...
FS0039 "The type <\identifier> is not defined. Maybe you want one of the following: ..."
...when attempting to reference the stored procedure name in
<typename>.dbo.<identifier>
type associated with the stored procedure (because it does not recognize the identifier).Expected behavior
There is an expected workflow to update autocompletion/compilation options to recognize new stored procedures when they are defined. Be it auto-updating or cleaning/rebuilding the project/solution to refresh the cache.
Actual behavior
No such cache-refreshes are occurring.
Known workarounds
Could potentially use the SqlCommandProvider to execute the stored procedures, but that doesn't bring with it the same kind of intellisense support which is the whole reason we started using the SqlProgrammabilityProvider in the first place. Our team exclusively uses stored procedures to interact with our database.
Related information
The text was updated successfully, but these errors were encountered: