askbook / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

SqliteParameter' is ambiguous #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

when i work with C# is OK

SqliteParameter[] Parameters=new SqliteParameter[11];
Parameters[0]=new SqliteParameter("@ProductBarcode",@ProductBarcode);
Parameters[1]=new SqliteParameter("@ProductSerial",@ProductSerial);
Parameters[2]=new SqliteParameter("@ProductName",@ProductName);

but when i work with VB.NET doesn't recognize SqliteParameter 

Dim Parameters(10) As SqliteParameter
Parameters(0) = New SQLiteParameter("@ProductBarcode", ProductBarcode)
Parameters(1) = New SQLiteParameter("@ProductSerial", ProductSerial)
Parameters(2) = New SQLiteParameter("@ProductName", ProductName)

nor 

Dim Parameters() As SqliteParameter = New SqliteParameter(11) {}

Parameters(0) = New SqliteParameter("@ProductBarcode", ProductBarcode)
Parameters(1) = New SqliteParameter("@ProductSerial", ProductSerial)
Parameters(2) = New SqliteParameter("@ProductName", ProductName)

this error caused 

'SqliteParameter' is ambiguous in the namespace 
'Community.CsharpSqlite.SQLiteClient'

Original issue reported on code.google.com by valon.hoti on 22 Mar 2011 at 2:46

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by noah.hart@gmail.com on 22 Mar 2011 at 6:59

GoogleCodeExporter commented 8 years ago
Patches accepted and applied

Original comment by noah.hart@gmail.com on 23 Mar 2011 at 9:11