0

I have a Xamarin.Forms application and I need to be able to manage a DB. I'm developing in Microsoft Visual Studio 2017 and I'm following this tutorial dor the SQLite: https://msdn.microsoft.com/en-us/magazine/mt736454.aspx

The problem is that when I get to the point: Figure 6 Generating a Connection String in the Universal Windows Project, that is to say implementing the DatabaseConnection_UWP.cs class. There I get some errors:

using LocalDataAccess.UWP;

Here it says: The type or namespace name "LocalDataAccess" could not be found (ar you missing a using directive or an assembly reference?)

And in the line:

[assembly: Dependency(typeof(DatabaseConnection_UWP))]

It says: The type or namespace name "DatabaseConnection_UWP" could not be found (ar you missing a using directive or an assembly reference?)

The code is exactly the same, all I have done is to copy-paste from the tutorial.

1
  • Sounds like LocalDataAccess is in a dll. Do you need to add a reference?
    – Ken Tucker
    Commented Apr 2, 2017 at 13:58

1 Answer 1

0

Solved it following a different tutorial that worked perfectly: https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/databases/

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.