Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7914555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:09:32+00:00 2026-06-03T14:09:32+00:00

I am using Mono, SQLite, Dapper & Dapper Extensions. I can read from the

  • 0

I am using Mono, SQLite, Dapper & Dapper Extensions. I can read from the database but Insert is not working. I am using Mono Driver for sqlite.

Error is not very informative, atleast to me. Any help will be much appreciated.

Error:

SQLite error
near ".": syntax error
at Mono.Data.Sqlite.SQLite3.Prepare (Mono.Data.Sqlite.SqliteConnection cnn, System.String strSql, Mono.Data.Sqlite.SqliteStatement previous, UInt32 timeoutMS,    System.String& strRemain) [0x00000] in <filename unknown>:0 
at Mono.Data.Sqlite.SqliteCommand.BuildNextCommand () [0x00000] in <filename unknown>:0

Test code:

public void can_add_a_service_record()
    {
        var provider = new Provider { Name = "Hotmail" };
        int id = providerData.Insert(provider);         
        Assert.AreEqual("Hotmail", providerData.Get(id).Name);  
    }

The code for insert is as follows.

public virtual int Insert (TEntity entity)
    {
        var connection = SqlHelper.GetConnection();         
        int id = connection.Insert<TEntity>(entity);
        connection.Close();
        return id;
    }

Thanks

Chirdeep

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:09:33+00:00Added an answer on June 3, 2026 at 2:09 pm

    To me this looks like a Dapper Extensions issue, not a Dapper issue. In particular, I can not see a Sqlite dialect implemented: https://github.com/tmsmith/Dapper-Extensions/tree/master/DapperExtensions/Sql .

    To resolve I would recommend you submit a patch the the Dapper Extensions project (which is totally separate to Dapper) or use a different wrapper on top of Dappe, or use Dapper without a wrapper.

    For example, the following should work:

    var id = cnn.Query<int>("insert cars values(@name); select last_insert_rowid()", 
       new {name = "bmw"});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read and implemented Trying to using Nhibernate with Mono & SQLite - can't
I'm working on writing a FileSystemWatcher using Mono but for some reason the callback
I am planning to do a project using Mono and SQLite as the database.
Hi after refering to http://www.mono-project.com/Embedding_Mono i can call methods from managed code by using
I'm trying to get a global hotkey working in Linux using Mono. I found
I'm working on an application for the Android OS using Android Mono so I
I have an application I'm porting from MSSQL and .NET to SQLite and Mono.
I am not sure if XSP2 is using mono or .NET in my Windows
Is it possible to write nautilus extensions using mono? I seem to find only
I am currently using Mono Cecil to extract data from C# projects. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.