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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:39:06+00:00 2026-06-15T10:39:06+00:00

I have a C# .NET application (kind of complex calculation app) in which the

  • 0

I have a C# .NET application (kind of complex calculation app) in which the user inputs data and the processed information is saved into SQLite file using JSON serialization and EF. The same can be loaded into our application when required.

The application undergoes lot of changes during development and the classes are also modified. So the previously saved serialized objects in SQLite file differs from the newer one.

i want to provide a compatibilty for the old files so that it can be opened in the new application.

In simple, a .NET class “class XYZ” with bool as a member is serialized using JSON and saved as BLOB in a SQLite file. Later in the newer version of app, the bool member of the “class XYZ” is modifed as int. how to deserialize the previously saved file with bool type into the new app?

There are changes in the SQLite table structure as well across the version. how to achieve this in .NET?

  • 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-15T10:39:08+00:00Added an answer on June 15, 2026 at 10:39 am

    This is a pretty common problem, not bound to C# language I think. It’ve seen two methods of achieving such a versioning:

    1. Create a table with only one INTEGER column which holds only one row (thus simulating a database variable) containing version of both the database and structure schema. With each schema change you increase the version associated with it. For each new version you write upgrade statements and functions fetching raw JSON objects (not converted to class instances since they won’t be compatible), updating, deleting and creating changed structure fields. Then you write converted structures to the upgraded schema. I’ve done it multiple times and sure, it quite tedious and you have to be meticulous, but that’s pretty much the only reliable way of doing that (that I’m aware of).
    2. Use a library such as Protocol Buffer which has support for structure changes (limited, of course). Such a library can assist you in structure changes, but not in database schema changes – either way you will probably have to maintain mentioned one-cell table with schema version and upgrade it whenever a lower number is seen.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# .Net Winforms application, which uses LibUsbDotNet to program firmware into
I have a ASP.Net MVC application which serves user pages with URL like -
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
I have a .NET application which serializes an object in binary format. this object
We have a .NET application for Windows which is installed locally by Microsoft Installer.
I have a third party .Net web application (Sitecore) which connects to an Oracle
I have a .NET application that inserts data in a SQL Server database, and
I have an ASP.NET MVC3 web application with UI, Business (entities), and Data (DbContext)
I have a .NET winform application that writes an XML data file, but I
I have a Silverlight app that consumes a WCF service in my asp.net application.The

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.