Upgrade SQL CE Database from 3.1 to 3.5

var engine = new System.Data.SqlServerCe.SqlCeEngine(“Data Source=” + filename); engine.EnsureVersion35(filename);   –HELPER CLASS—     public static class SqlCeUpgrade     {         public static void EnsureVersion35(this SqlCeEngine engine, string filename)         {             try             {                 SQLCEVersion fileversion = DetermineVersion(filename);                 if (fileversion == SQLCEVersion.SQLCE20)                     throw new ApplicationException(“Unable to upgrade from 2.0 to 3.5”);                …

1