Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
Updated to LiteDB v4.0 Beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
falahati committed Oct 9, 2017
1 parent 9b0488b commit aa47939
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 166 deletions.
1 change: 0 additions & 1 deletion LiteDB
Submodule LiteDB deleted from d9c24b
29 changes: 16 additions & 13 deletions LiteDBViewer.Setup/LiteDBViewer.Setup.isl
Original file line number Diff line number Diff line change
Expand Up @@ -1148,14 +1148,15 @@
<row><td>FavoritesFolder</td><td>TARGETDIR</td><td>.:FAVORI~1|Favorites</td><td/><td>0</td><td/></row>
<row><td>FontsFolder</td><td>TARGETDIR</td><td>.:Fonts</td><td/><td>0</td><td/></row>
<row><td>GlobalAssemblyCache</td><td>TARGETDIR</td><td>.:Global~1|GlobalAssemblyCache</td><td/><td>0</td><td/></row>
<row><td>INSTALLDIR</td><td>LITEDB_VIEWER_3</td><td>.</td><td/><td>0</td><td/></row>
<row><td>INSTALLDIR</td><td>LITEDB_VIEWER_4</td><td>.</td><td/><td>0</td><td/></row>
<row><td>ISCommonFilesFolder</td><td>CommonFilesFolder</td><td>Instal~1|InstallShield</td><td/><td>0</td><td/></row>
<row><td>ISMyCompanyDir</td><td>ProgramFilesFolder</td><td>MYCOMP~1|My Company Name</td><td/><td>0</td><td/></row>
<row><td>ISMyProductDir</td><td>ISMyCompanyDir</td><td>MYPROD~1|My Product Name</td><td/><td>0</td><td/></row>
<row><td>ISYourDataBaseDir</td><td>INSTALLDIR</td><td>Database</td><td/><td>0</td><td/></row>
<row><td>LITEDB_VIEWER</td><td>ProgramFilesFolder</td><td>LITEDB~1|LiteDB Viewer</td><td/><td>0</td><td/></row>
<row><td>LITEDB_VIEWER_2</td><td>ProgramFilesFolder</td><td>LITEDB~1|LiteDB Viewer 2</td><td/><td>0</td><td/></row>
<row><td>LITEDB_VIEWER_3</td><td>ProgramFilesFolder</td><td>LITEDB~1|LiteDB Viewer 3</td><td/><td>0</td><td/></row>
<row><td>LITEDB_VIEWER_4</td><td>ProgramFilesFolder</td><td>LITEDB~1|LiteDB Viewer 4</td><td/><td>0</td><td/></row>
<row><td>LocalAppDataFolder</td><td>TARGETDIR</td><td>.:LocalA~1|LocalAppData</td><td/><td>0</td><td/></row>
<row><td>MY_PRODUCT_NAME</td><td>FALAHATI.NET</td><td>MYPROD~1|My Product Name</td><td/><td>0</td><td/></row>
<row><td>MyPicturesFolder</td><td>TARGETDIR</td><td>.:MyPict~1|MyPictures</td><td/><td>0</td><td/></row>
Expand Down Expand Up @@ -1853,7 +1854,7 @@
<row><td>NewExtension2</td><td>LiteDBViewer.Primary_output</td><td/><td/><td>AlwaysInstall</td></row>
<row><td>NewExtension3</td><td>LiteDBViewer.Primary_output</td><td/><td/><td>AlwaysInstall</td></row>
<row><td>db</td><td>LiteDBViewerVersionSelector.Primary_output</td><td>litedbviewerversionselector.databasefile</td><td/><td>AlwaysInstall</td></row>
<row><td>db3</td><td>LiteDBViewer.Primary_output</td><td>litedbviewer3.databasefile</td><td/><td>AlwaysInstall</td></row>
<row><td>db4</td><td>LiteDBViewer.Primary_output</td><td>litedbviewer4.databasefile</td><td/><td>AlwaysInstall</td></row>
</table>

<table name="Feature">
Expand Down Expand Up @@ -3730,18 +3731,19 @@
<row><td>IDS__TargetReq_DESC_RESOLUTION</td><td>1033</td><td>The screen resolution is not adequate for running [ProductName].</td><td>0</td><td/><td>-2086347445</td></row>
<row><td>ID_STRING1</td><td>1033</td><td>http://www.falahati.net</td><td>0</td><td/><td>-2086371957</td></row>
<row><td>ID_STRING2</td><td>1033</td><td>Falahati.net</td><td>0</td><td/><td>-2086386293</td></row>
<row><td>ID_STRING3</td><td>1033</td><td>LiteDB Viewer 3</td><td>0</td><td/><td>-920300433</td></row>
<row><td>ID_STRING4</td><td>1033</td><td>LiteDB Viewer 3</td><td>0</td><td/><td>-920300433</td></row>
<row><td>ID_STRING5</td><td>1033</td><td>LiteDB Viewer 3 Installer</td><td>0</td><td/><td>-920296337</td></row>
<row><td>ID_STRING3</td><td>1033</td><td>LiteDB Viewer 4</td><td>0</td><td/><td>1294272180</td></row>
<row><td>ID_STRING4</td><td>1033</td><td>LiteDB Viewer 4</td><td>0</td><td/><td>1294276276</td></row>
<row><td>ID_STRING5</td><td>1033</td><td>LiteDB Viewer 4 Installer</td><td>0</td><td/><td>1294280372</td></row>
<row><td>ID_STRING6</td><td>1033</td><td>Project's Github Page</td><td>0</td><td/><td>-2086363765</td></row>
<row><td>ID_STRING7</td><td>1033</td><td>https://github.com/falahati/LiteDBViewer/issues</td><td>0</td><td/><td>-2086343285</td></row>
<row><td>ID_STRING8</td><td>1033</td><td>LITEDB~1|LiteDB Viewer 3</td><td>0</td><td/><td>-920285647</td></row>
<row><td>ID_STRING8</td><td>1033</td><td>LITEDB~1|LiteDB Viewer 4</td><td>0</td><td/><td>1294306996</td></row>
<row><td>IIDS_UITEXT_FeatureUninstalled</td><td>1033</td><td>This feature will remain uninstalled.</td><td>0</td><td/><td>-2086347445</td></row>
<row><td>NEW_STRING1</td><td>1033</td><td>db</td><td>0</td><td/><td>-2086381524</td></row>
<row><td>NEW_STRING2</td><td>1033</td><td>db3</td><td>0</td><td/><td>-920264079</td></row>
<row><td>NEW_STRING3</td><td>1033</td><td>db2</td><td>0</td><td/><td>-920309103</td></row>
<row><td>NEW_STRING4</td><td>1033</td><td>db3</td><td>0</td><td/><td>-920305007</td></row>
<row><td>NEW_STRING5</td><td>1033</td><td>db</td><td>0</td><td/><td>-920300911</td></row>
<row><td>NEW_STRING6</td><td>1033</td><td>db4</td><td>0</td><td/><td>1294321332</td></row>
</table>

<table name="ISSwidtagProperty">
Expand Down Expand Up @@ -3859,6 +3861,7 @@
<row><td>_219C5000_4998_4C15_B805_57028684DB4C</td><td/><td>&lt;VSSolutionFolder&gt;\LiteDBViewer\logo.ico</td><td>0</td></row>
<row><td>_447D0E92_67F0_4A84_B481_9D23D148B67A</td><td/><td>&lt;VSSolutionFolder&gt;\LiteDBViewer\logo.ico</td><td>0</td></row>
<row><td>_5D5C1D88239E4E93AD3A586210514E6B.exe</td><td/><td>E:\Personal\Open-Source Projects\LiteDBViewer\LiteDBViewer\bin\Release\LiteDBViewer.exe</td><td>0</td></row>
<row><td>_AB6DA949_CB70_4AD7_ABE9_A180C48741D7</td><td/><td>&lt;VSSolutionFolder&gt;\LiteDBViewer\logo.ico</td><td>0</td></row>
<row><td>_B998458B9BAB4CCCB4E32310C9CE2506.exe</td><td/><td>E:\Personal\Open-Source Projects\LiteDBViewer\LiteDBViewer\bin\Release\LiteDBViewer.exe</td><td>0</td></row>
<row><td>_F094E218_E425_4B70_AC66_093EC1A36A9E</td><td/><td>&lt;VSSolutionFolder&gt;\LiteDBViewer\logo.ico</td><td>0</td></row>
<row><td>_FD7293EB_5A56_41B8_A546_E4F5D75E382D</td><td/><td>[INSTALLDIR]LiteDBViewer.exe</td><td>0</td></row>
Expand Down Expand Up @@ -4295,7 +4298,7 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
<col def="S72">Icon_</col>
<col def="I2">IconIndex</col>
<col def="I4">ISAttributes</col>
<row><td>litedbviewer3.databasefile</td><td/><td/><td>LiteDB 3 Database</td><td>_219C5000_4998_4C15_B805_57028684DB4C</td><td>0</td><td/></row>
<row><td>litedbviewer4.databasefile</td><td/><td/><td>LiteDB 4 Database</td><td>_AB6DA949_CB70_4AD7_ABE9_A180C48741D7</td><td>0</td><td/></row>
<row><td>litedbviewerversionselector.databasefile</td><td/><td/><td>LiteDB Database</td><td>_447D0E92_67F0_4A84_B481_9D23D148B67A</td><td>0</td><td/></row>
</table>

Expand Down Expand Up @@ -4376,9 +4379,9 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
<row><td>PROGMSG_IIS_ROLLBACKVROOTS</td><td>##IDS_PROGMSG_IIS_ROLLBACKVROOTS##</td><td/></row>
<row><td>PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS</td><td>##IDS_PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS##</td><td/></row>
<row><td>PROGRAMFILETOLAUNCHATEND</td><td>[INSTALLDIR]LiteDBViewer.Primary output</td><td/></row>
<row><td>ProductCode</td><td>{6EFB147B-92A8-4F04-BE51-6D2A8EFB40F7}</td><td/></row>
<row><td>ProductName</td><td>LiteDB Viewer 3</td><td/></row>
<row><td>ProductVersion</td><td>3.0.1.0</td><td/></row>
<row><td>ProductCode</td><td>{6EFB147B-92A8-4F04-BE51-6D2A8EFB40F8}</td><td/></row>
<row><td>ProductName</td><td>LiteDB Viewer 4</td><td/></row>
<row><td>ProductVersion</td><td>4.0.0.0</td><td/></row>
<row><td>ProgressType0</td><td>install</td><td/></row>
<row><td>ProgressType1</td><td>Installing</td><td/></row>
<row><td>ProgressType2</td><td>installed</td><td/></row>
Expand All @@ -4394,7 +4397,7 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
<row><td>SecureCustomProperties</td><td>ISFOUNDNEWERPRODUCTVERSION;USERNAME;COMPANYNAME;ISX_SERIALNUM;SUPPORTDIR;DOTNETVERSION45FULL;ISACTIONPROP1</td><td/></row>
<row><td>SelectedSetupType</td><td>##IDS__DisplayName_Typical##</td><td/></row>
<row><td>SetupType</td><td>Typical</td><td/></row>
<row><td>UpgradeCode</td><td>{F00B78B2-02D6-4298-8D9B-D75F4CDFCAE0}</td><td/></row>
<row><td>UpgradeCode</td><td>{F00B78B2-02D6-4298-8D9B-D75F4CDFCAE1}</td><td/></row>
<row><td>_IsMaintenance</td><td>Change</td><td/></row>
<row><td>_IsSetupTypeMin</td><td>Typical</td><td/></row>
</table>
Expand Down Expand Up @@ -4663,7 +4666,7 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
<col def="s72">ActionProperty</col>
<col def="S72">ISDisplayName</col>
<row><td>{00000000-0000-0000-0000-000000000000}</td><td>***ALL_VERSIONS***</td><td></td><td></td><td>2</td><td/><td>ISFOUNDNEWERPRODUCTVERSION</td><td>ISPreventDowngrade</td></row>
<row><td>{F00B78B2-02D6-4298-8D9B-D75F4CDFCAE0}</td><td>3.0.1.0</td><td>3.0.1.0</td><td>1033</td><td>256</td><td/><td>ISACTIONPROP1</td><td>UpgradeEntry</td></row>
<row><td>{F00B78B2-02D6-4298-8D9B-D75F4CDFCAE1}</td><td>4.0.0.0</td><td>4.0.0.0</td><td>1033</td><td>256</td><td/><td>ISACTIONPROP1</td><td>UpgradeEntry</td></row>
</table>

<table name="Verb">
Expand All @@ -4673,7 +4676,7 @@ UwBpAG4AZwBsAGUASQBtAGEAZwBlAAEARQB4AHAAcgBlAHMAcwA=
<col def="L255">Command</col>
<col def="L255">Argument</col>
<row><td>db</td><td>open</td><td/><td>View with LiteDB Viewer</td><td>"%1"</td></row>
<row><td>db3</td><td>open</td><td/><td>View with LiteDB Viewer 3</td><td>"%1"</td></row>
<row><td>db4</td><td>open</td><td/><td>View with LiteDB Viewer 4</td><td>"%1"</td></row>
</table>

<table name="_Validation">
Expand Down
12 changes: 0 additions & 12 deletions LiteDBViewer/LiteDB.Shell/Shell/Display.cs

This file was deleted.

7 changes: 0 additions & 7 deletions LiteDBViewer/LiteDB.Shell/Shell/Env.cs

This file was deleted.

7 changes: 0 additions & 7 deletions LiteDBViewer/LiteDB.Shell/Shell/InputCommand.cs

This file was deleted.

73 changes: 2 additions & 71 deletions LiteDBViewer/LiteDBViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<HintPath>..\packages\JsonPrettyPrinter.1.0.1.1\lib\net35\JsonPrettyPrinterPlus.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="LiteDB, Version=3.0.1.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.3.0.1\lib\net35\LiteDB.dll</HintPath>
<Reference Include="LiteDB, Version=4.0.0.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27, processorArchitecture=MSIL">
<HintPath>..\packages\LiteDB.4.0.0-beta2\lib\net40\LiteDB.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand All @@ -56,72 +56,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\BaseCollection.cs">
<Link>LiteDB.Shell\Commands\Collections\BaseCollection.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Bulk.cs">
<Link>LiteDB.Shell\Commands\Collections\Bulk.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Count.cs">
<Link>LiteDB.Shell\Commands\Collections\Count.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Delete.cs">
<Link>LiteDB.Shell\Commands\Collections\Delete.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Drop.cs">
<Link>LiteDB.Shell\Commands\Collections\Drop.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\DropIndex.cs">
<Link>LiteDB.Shell\Commands\Collections\DropIndex.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\EnsureIndex.cs">
<Link>LiteDB.Shell\Commands\Collections\EnsureIndex.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Find.cs">
<Link>LiteDB.Shell\Commands\Collections\Find.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Indexes.cs">
<Link>LiteDB.Shell\Commands\Collections\Indexes.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Insert.cs">
<Link>LiteDB.Shell\Commands\Collections\Insert.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Max.cs">
<Link>LiteDB.Shell\Commands\Collections\Max.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Min.cs">
<Link>LiteDB.Shell\Commands\Collections\Min.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Rename.cs">
<Link>LiteDB.Shell\Commands\Collections\Rename.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Collections\Update.cs">
<Link>LiteDB.Shell\Commands\Collections\Update.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\ICommand.cs">
<Link>LiteDB.Shell\Commands\ICommand.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\BaseStorage.cs">
<Link>LiteDB.Shell\Commands\Storage\BaseStorage.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\Delete.cs">
<Link>LiteDB.Shell\Commands\Storage\Delete.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\Download.cs">
<Link>LiteDB.Shell\Commands\Storage\Download.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\Find.cs">
<Link>LiteDB.Shell\Commands\Storage\Find.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\Update.cs">
<Link>LiteDB.Shell\Commands\Storage\Update.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Commands\Storage\Upload.cs">
<Link>LiteDB.Shell\Commands\Storage\Upload.cs</Link>
</Compile>
<Compile Include="..\LiteDB\LiteDB.Shell\Utils\StringExtensions.cs">
<Link>LiteDB.Shell\Utils\StringExtensions.cs</Link>
</Compile>
<Compile Include="ArrayViewForm.cs">
<SubType>Form</SubType>
</Compile>
Expand All @@ -140,9 +74,6 @@
<Compile Include="DocumentViewForm.Designer.cs">
<DependentUpon>DocumentViewForm.cs</DependentUpon>
</Compile>
<Compile Include="LiteDB.Shell\Shell\Display.cs" />
<Compile Include="LiteDB.Shell\Shell\Env.cs" />
<Compile Include="LiteDB.Shell\Shell\InputCommand.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
Expand Down
60 changes: 15 additions & 45 deletions LiteDBViewer/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Reflection;
using System.Windows.Forms;
using LiteDB;
using LiteDB.Shell;

namespace LiteDBViewer
{
Expand All @@ -21,22 +20,7 @@ internal partial class MainForm : Form
new Dictionary<BsonDocument, LiteFileInfo>();

private LiteDatabase _db;

private static readonly List<ICommand> Commands = new List<ICommand>();

static MainForm()
{
var type = typeof(ICommand);
var types = typeof(ICommand).Assembly
.GetTypes()
.Where(p => type.IsAssignableFrom(p) && p.IsClass);

foreach (var cmd in types)
{
Commands.Add(Activator.CreateInstance(cmd) as ICommand);
}
}


public MainForm(string fileName, string password = null, bool upgrade = false)
{
_encrypted = !string.IsNullOrWhiteSpace(password);
Expand All @@ -61,6 +45,12 @@ public MainForm(string fileName, string password = null, bool upgrade = false)
InitializeComponent();

txt_filename.Text = _fileName + (_encrypted ? " [ENCRYPTED]" : string.Empty);
RefreshCollections();
}

private void RefreshCollections()
{
lb_Collections.Items.Clear();
foreach (var collection in _db.GetCollectionNames())
{
if (!collection.Equals("_chunks") && !collection.Equals("_files"))
Expand Down Expand Up @@ -272,35 +262,15 @@ private void RunQuery(string query)
try
{
txt_query.Text = query;
var resultHolder = new Display();
var scanner = new StringScanner(query);
var found = false;

foreach (var command in Commands)
{
if (!command.IsCommand(scanner)) continue;
command.Execute(_db.Engine, scanner, resultHolder, null, null);
found = true;
break;
}
if (!found) throw new Exception("Command not found.");

FillDataGridView(null);
var rows = new List<BsonDocument>();
if (resultHolder.LastResult.IsArray)
{
rows.AddRange(
resultHolder.LastResult.AsArray.Select(
item =>
item.IsDocument
? item.AsDocument
: new BsonDocument {{"RESULT", resultHolder.LastResult}}));
}
else
{
rows.Add(new BsonDocument { { "RESULT", resultHolder.LastResult } });
}
FillDataGridView(rows);
var results = _db.Engine.Run(query);
RefreshCollections();
FillDataGridView(
results.Select(
item =>
item.IsDocument
? item.AsDocument
: new BsonDocument(new Dictionary<string, BsonValue> {{"[Result]", item}})));
}
catch (Exception ex)
{
Expand Down
10 changes: 5 additions & 5 deletions LiteDBViewer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyTitle("LiteDB Viewer 3")]
[assembly: AssemblyDescription("LiteDB Viewer 3")]
[assembly: AssemblyTitle("LiteDB Viewer 4")]
[assembly: AssemblyDescription("LiteDB Viewer 4")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Soroush Falahati")]
[assembly: AssemblyProduct("LiteDB Viewer 3")]
[assembly: AssemblyProduct("LiteDB Viewer 4")]
[assembly: AssemblyCopyright("Copyright © Soroush Falahati 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
[assembly: AssemblyVersion("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.0.0")]
2 changes: 1 addition & 1 deletion LiteDBViewer/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="JsonPrettyPrinter" version="1.0.1.1" targetFramework="net40" />
<package id="LiteDB" version="3.0.1" targetFramework="net40" />
<package id="LiteDB" version="4.0.0-beta2" targetFramework="net40" />
</packages>
3 changes: 2 additions & 1 deletion LiteDBViewerVersionSelector/LiteDBVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum LiteDBVersion
LiteDB_1_0,
LiteDB_2_0RC,
LiteDB_2_0,
LiteDB_3_0
LiteDB_3_0,
LiteDB_4_0
}
}
3 changes: 3 additions & 0 deletions LiteDBViewerVersionSelector/LiteDBViewerExecutionException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ private static string VersionToString(LiteDBVersion version)
case LiteDBVersion.LiteDB_3_0:
versionString = "LiteDBViewer v3.0";
break;
case LiteDBVersion.LiteDB_4_0:
versionString = "LiteDBViewer v4.0";
break;
}
return $"Can not find or execute the {versionString}. Please make sure that you have it installed.";
}
Expand Down
Loading

0 comments on commit aa47939

Please sign in to comment.