E 0:00:01.149 Mono.Data.Sqlite.SqliteStatement Mono.Data.Sqlite.SQLite3.Prepare(Mono.Data.Sqlite.SqliteConnection , System.String , Mono.Data.Sqlite.SqliteStatement , UInt32 , System.String& ): Mono.Data.Sqlite.SqliteException: SQLite error
no such table: Employees
<C++ Error> Unhandled exception
<C++ Source> :0 @ Mono.Data.Sqlite.SqliteStatement Mono.Data.Sqlite.SQLite3.Prepare(Mono.Data.Sqlite.SqliteConnection , System.String , Mono.Data.Sqlite.SqliteStatement , UInt32 , System.String& )()
<Stack Trace> :0 @ Mono.Data.Sqlite.SqliteStatement Mono.Data.Sqlite.SQLite3.Prepare(Mono.Data.Sqlite.SqliteConnection , System.String , Mono.Data.Sqlite.SqliteStatement , UInt32 , System.String& )()
:0 @ Mono.Data.Sqlite.SqliteStatement Mono.Data.Sqlite.SqliteCommand.BuildNextCommand()()
:0 @ Mono.Data.Sqlite.SqliteStatement Mono.Data.Sqlite.SqliteCommand.GetStatement(Int32 )()
:0 @ ()
:0 @ Boolean Mono.Data.Sqlite.SqliteDataReader.NextResult()()
:0 @ Mono.Data.Sqlite.SqliteDataReader..ctor(Mono.Data.Sqlite.SqliteCommand , System.Data.CommandBehavior )()
:0 @ ()
:0 @ Mono.Data.Sqlite.SqliteDataReader Mono.Data.Sqlite.SqliteCommand.ExecuteReader(System.Data.CommandBehavior )()
:0 @ System.Data.Common.DbDataReader Mono.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(System.Data.CommandBehavior )()
:0 @ System.Data.IDataReader System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior )()
:0 @ System.Data.IDataReader Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(System.Data.IDbCommand , Boolean , System.Data.CommandBehavior )()
:0 @ Boolean Dapper.SqlMapper+<QueryImpl>d__140`1[[Employee, desert_edge_server_sharp, Version=1.0.7380.31641, Culture=neutral, PublicKeyToken=null]].MoveNext()()
:0 @ void System.Collections.Generic.List`1[[Employee, desert_edge_server_sharp, Version=1.0.7380.31641, Culture=neutral, PublicKeyToken=null]].AddEnumerable(System.Collections.Generic.IEnumerable`1[Employee] )()
:0 @ System.Collections.Generic.List`1[[Employee, desert_edge_server_sharp, Version=1.0.7380.31641, Culture=neutral, PublicKeyToken=null]]..ctor(System.Collections.Generic.IEnumerable`1[Employee] )()
:0 @ System.Collections.Generic.List`1[Employee] System.Linq.Enumerable.ToList<Employee >(System.Collections.Generic.IEnumerable`1[Employee] )()
:0 @ System.Collections.Generic.IEnumerable`1[Employee] Dapper.SqlMapper.Query<Employee >(System.Data.IDbConnection , System.String , System.Object , System.Data.IDbTransaction , Boolean , System.Nullable`1[System.Int32] , System.Nullable`1[System.Data.CommandType] )()
:0 @ Employee Dapper.Contrib.Extensions.SqlMapperExtensions.Get<Employee >(System.Data.IDbConnection , System.Object , System.Data.IDbTransaction , System.Nullable`1[System.Int32] )()
Main.cs:61 @ void Main._Ready()()
string cs = "Data Source==SqliteTest.db";
using (var con = new SqliteConnection(cs))
{
con.Open();
Employee _get = con.Get<Employee>(1);
Log.Printi(_get);
}
public class Employee
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
using Mono.Data.Sqlite;
using Dapper.Contrib.Extensions;
If I don't use contrib.extension Dopper work fine.
What I'm missing?
Hi,
I have this weird error when I use contrib.extension
in this line:
Employee _get = con.Get<Employee>(1);This is the code I'm using:
and this is my class:
here some my imports:
If I don't use contrib.extension Dopper work fine.
What I'm missing?
Thank you