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 6148263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:14:58+00:00 2026-05-23T19:14:58+00:00

I am using SQLite wrapper provided by http://sqlite.phxsoftware.com in VS2010 Here is the code

  • 0

I am using SQLite wrapper provided by http://sqlite.phxsoftware.com in VS2010

Here is the code that I am using

static void Main(string[] args)
    {

       INFO inf =  INFO.CreateINFO("test5", 123);
       TestDBEntities3 entity = new TestDBEntities3();
       entity.Connection.Open();
       entity.Connection.BeginTransaction();
       var result = from i in entity.INFOes
                    where i.Name.Equals(inf.Name)
                    select i;
       if (result.Count() == 0)
           entity.AddToINFOes(inf);
       entity.SaveChanges(true);
       entity.Connection.Close();
    }

When I execute the code data do not persist to the database. I am checking the right database mentioned in the connection string of App.config file.

Also I can re run the query without changing the primarykey data and no primary key conflict occurs.

But during the debug at line

entity.Connection.Close();

‘entity’ has the new created record in it but does not save.

Thanks

  • 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-05-23T19:14:59+00:00Added an answer on May 23, 2026 at 7:14 pm

    You started transaction manually so you also have to commit it …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed SQLite and am using the wrapper from: http://sqlite.phxsoftware.com/ I have created
I am using SQLite and the wrapper from http://sqlite.phxsoftware.com/ and when I add a
Hey I am using the http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/ wrapper . My code is this : -
I am using sqlite (version 3.7.5) with sqlite jdbc driver provided at http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC I
So here is the deal, I am using FMDB SQLite Wrapper for my DB
I'm using a Java wrapper for SQLite called SQLiteJDBC - this may have some
I'm using a Java wrapper for accessing Sqlite but I assume this is a
I am using SQLite in an application that I am developing. I am trying
I am using Delphi 2010 with Tim Anderson's SQLite wrapper (unicode version) Have a
I'm using SQLite with python. My code for closing SQLite DB is as follows.

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.