MySQL Forums
Forum List  »  Other Migration

sqlite ambiguous SQLiteConnection
Posted by: Larry Seymour
Date: November 25, 2016 12:06PM

I am creating an app in C# and while trying to connet to the sqlite db i get this error.

Error CS0121 The call is ambiguous between the following methods or properties:
'SQLiteConnection.SQLiteConnection(string, bool)' and 'SQLiteConnection.SQLiteConnection(string, bool)'
BitesBoardMobile.Droid, BitesBoardMobile.iOS, BitesBoardMobile.WinPhone C:\Users\Larry\documents\visual studio 2015\Projects\BitesBoardMobile\BitesBoardMobile\BitesBoardMobile\controlObject\ControllerData.cs

My code is:
using System;
using SQLite;
using System.IO;

namespace BitesBoardMobile.controlObject
{
public class ControllerData
{
public SQLiteConnection ConnerctToSqLite(string path)
{
var conn = new SQLiteConnection(path);
return conn;
}
}
}

the confusing part to me is on both parts of the ambiguous call it references the same thing.
SQLiteConnection.SQLiteConnection(string, bool)

any idea will be helpful.
thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
sqlite ambiguous SQLiteConnection
1658
November 25, 2016 12:06PM
781
November 25, 2016 03:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.