Hi @CsharpRobert ,
How do I add WebMatrix 'Data' to Visual Studio?
Just refer to this step: Menu Bar -> Tools
> NuGet Package Manager
> Package Manager Console
, and run following command in console:
Install-Package Microsoft.AspNet.WebPages.Data
Once you've done that, you'll see the assembly imported into your project, something like this:
Finally, use namespace using WebMatrix.Data;
to fix your problem.
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.