mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
Rework database loading/migration
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is automatically generated by Visual Studio .Net. It is
|
||||
used to store generic object data source configuration information.
|
||||
Renaming the file extension or editing the content of this file may
|
||||
cause the file to be unrecognizable by the program.
|
||||
-->
|
||||
<GenericObjectDataSource DisplayName="FeedCenterEntities" Identifier="FeedCenter.FeedCenterEntities" ProviderType="Microsoft.VisualStudio.DataDesign.DataSourceProviders.EntityDataModel.EdmDataSourceProvider" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<TypeInfo>FeedCenter.FeedCenterEntities, Model.Designer.cs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||
</GenericObjectDataSource>
|
||||
36
Application/Properties/Resources.Designer.cs
generated
36
Application/Properties/Resources.Designer.cs
generated
@@ -1298,11 +1298,11 @@ namespace FeedCenter.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Checking database existence....
|
||||
/// Looks up a localized string similar to Checking for legacy database....
|
||||
/// </summary>
|
||||
public static string SplashCheckingForDatabase {
|
||||
public static string SplashCheckingForLegacyDatabase {
|
||||
get {
|
||||
return ResourceManager.GetString("SplashCheckingForDatabase", resourceCulture);
|
||||
return ResourceManager.GetString("SplashCheckingForLegacyDatabase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1343,11 +1343,29 @@ namespace FeedCenter.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Maintaining database....
|
||||
/// Looks up a localized string similar to Loading database....
|
||||
/// </summary>
|
||||
public static string SplashMaintainingDatabase {
|
||||
public static string SplashLoadingDatabase {
|
||||
get {
|
||||
return ResourceManager.GetString("SplashMaintainingDatabase", resourceCulture);
|
||||
return ResourceManager.GetString("SplashLoadingDatabase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Maintaining legacy database....
|
||||
/// </summary>
|
||||
public static string SplashMaintainingLegacyDatabase {
|
||||
get {
|
||||
return ResourceManager.GetString("SplashMaintainingLegacyDatabase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Migrating legacy database....
|
||||
/// </summary>
|
||||
public static string SplashMigratingLegacyDatabase {
|
||||
get {
|
||||
return ResourceManager.GetString("SplashMigratingLegacyDatabase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1370,11 +1388,11 @@ namespace FeedCenter.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Updating database....
|
||||
/// Looks up a localized string similar to Updating legacy database....
|
||||
/// </summary>
|
||||
public static string SplashUpdatingDatabase {
|
||||
public static string SplashUpdatingLegacyDatabase {
|
||||
get {
|
||||
return ResourceManager.GetString("SplashUpdatingDatabase", resourceCulture);
|
||||
return ResourceManager.GetString("SplashUpdatingLegacyDatabase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,8 +154,8 @@
|
||||
<data name="SplashCheckingForUpdate" xml:space="preserve">
|
||||
<value>Checking for update...</value>
|
||||
</data>
|
||||
<data name="SplashCheckingForDatabase" xml:space="preserve">
|
||||
<value>Checking database existence...</value>
|
||||
<data name="SplashCheckingForLegacyDatabase" xml:space="preserve">
|
||||
<value>Checking for legacy database...</value>
|
||||
</data>
|
||||
<data name="SplashCreatingDatabase" xml:space="preserve">
|
||||
<value>Creating database...</value>
|
||||
@@ -169,11 +169,11 @@
|
||||
<data name="SplashDownloadingUpdate" xml:space="preserve">
|
||||
<value>Downloading update...</value>
|
||||
</data>
|
||||
<data name="SplashMaintainingDatabase" xml:space="preserve">
|
||||
<value>Maintaining database...</value>
|
||||
<data name="SplashMaintainingLegacyDatabase" xml:space="preserve">
|
||||
<value>Maintaining legacy database...</value>
|
||||
</data>
|
||||
<data name="SplashUpdatingDatabase" xml:space="preserve">
|
||||
<value>Updating database...</value>
|
||||
<data name="SplashUpdatingLegacyDatabase" xml:space="preserve">
|
||||
<value>Updating legacy database...</value>
|
||||
</data>
|
||||
<data name="SplashStarting" xml:space="preserve">
|
||||
<value>Starting...</value>
|
||||
@@ -529,4 +529,10 @@
|
||||
<data name="defaultUserAgentLabel" xml:space="preserve">
|
||||
<value>Default _user agent:</value>
|
||||
</data>
|
||||
<data name="SplashLoadingDatabase" xml:space="preserve">
|
||||
<value>Loading database...</value>
|
||||
</data>
|
||||
<data name="SplashMigratingLegacyDatabase" xml:space="preserve">
|
||||
<value>Migrating legacy database...</value>
|
||||
</data>
|
||||
</root>
|
||||
13
Application/Properties/Settings.Designer.cs
generated
13
Application/Properties/Settings.Designer.cs
generated
@@ -74,9 +74,9 @@ namespace FeedCenter.Properties {
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("FeedCenter.sdf")]
|
||||
public string DatabaseFile {
|
||||
public string DatabaseFile_Legacy {
|
||||
get {
|
||||
return ((string)(this["DatabaseFile"]));
|
||||
return ((string)(this["DatabaseFile_Legacy"]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,5 +293,14 @@ namespace FeedCenter.Properties {
|
||||
this["DefaultUserAgent"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("FeedCenter.realm")]
|
||||
public string DatabaseFile {
|
||||
get {
|
||||
return ((string)(this["DatabaseFile"]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="FeedCenter.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="WindowLocked" Provider="Common.Settings.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Setting Name="WindowLocked" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="WindowSize" Provider="Common.Settings.GenericSettingsProvider" Type="System.Windows.Size" Scope="User">
|
||||
<Setting Name="WindowSize" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Windows.Size" Scope="User">
|
||||
<Value Profile="(Default)">0,0</Value>
|
||||
</Setting>
|
||||
<Setting Name="WindowLocation" Provider="Common.Settings.GenericSettingsProvider" Type="System.Windows.Point" Scope="User">
|
||||
<Setting Name="WindowLocation" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Windows.Point" Scope="User">
|
||||
<Value Profile="(Default)">0,0</Value>
|
||||
</Setting>
|
||||
<Setting Name="LogDatabase" Type="System.Boolean" Scope="Application">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="DatabaseFile" Type="System.String" Scope="Application">
|
||||
<Setting Name="DatabaseFile_Legacy" Type="System.String" Scope="Application">
|
||||
<Value Profile="(Default)">FeedCenter.sdf</Value>
|
||||
</Setting>
|
||||
<Setting Name="ProgressSleepInterval" Type="System.Int32" Scope="Application">
|
||||
@@ -26,40 +26,40 @@
|
||||
<Setting Name="BalloonTipTimeout" Type="System.Int32" Scope="Application">
|
||||
<Value Profile="(Default)">5000</Value>
|
||||
</Setting>
|
||||
<Setting Name="FeedScrollInterval" Provider="Common.Settings.GenericSettingsProvider" Type="System.TimeSpan" Scope="User">
|
||||
<Setting Name="FeedScrollInterval" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.TimeSpan" Scope="User">
|
||||
<Value Profile="(Default)">00:01:00</Value>
|
||||
</Setting>
|
||||
<Setting Name="FeedCheckInterval" Provider="Common.Settings.GenericSettingsProvider" Type="System.TimeSpan" Scope="User">
|
||||
<Setting Name="FeedCheckInterval" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.TimeSpan" Scope="User">
|
||||
<Value Profile="(Default)">00:30:00</Value>
|
||||
</Setting>
|
||||
<Setting Name="DisplayEmptyFeeds" Provider="Common.Settings.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Setting Name="DisplayEmptyFeeds" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="LastVersionCheck" Provider="Common.Settings.GenericSettingsProvider" Type="System.DateTime" Scope="User">
|
||||
<Setting Name="LastVersionCheck" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.DateTime" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="VersionCheckInterval" Type="System.TimeSpan" Scope="Application">
|
||||
<Value Profile="(Default)">01:00:00</Value>
|
||||
</Setting>
|
||||
<Setting Name="StartWithWindows" Provider="Common.Settings.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Setting Name="StartWithWindows" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="FirstRun" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
<Setting Name="ToolbarLocation" Provider="Common.Settings.GenericSettingsProvider" Type="System.Windows.Controls.Dock" Scope="User">
|
||||
<Setting Name="ToolbarLocation" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Windows.Controls.Dock" Scope="User">
|
||||
<Value Profile="(Default)">Bottom</Value>
|
||||
</Setting>
|
||||
<Setting Name="OpenAllSleepInterval" Provider="Common.Settings.GenericSettingsProvider" Type="System.Int32" Scope="User">
|
||||
<Setting Name="OpenAllSleepInterval" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">500</Value>
|
||||
</Setting>
|
||||
<Setting Name="Browser" Provider="Common.Settings.GenericSettingsProvider" Type="System.String" Scope="User">
|
||||
<Setting Name="Browser" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="OpenAllSleepIntervalFirst" Provider="Common.Settings.GenericSettingsProvider" Type="System.Int32" Scope="User">
|
||||
<Setting Name="OpenAllSleepIntervalFirst" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">1500</Value>
|
||||
</Setting>
|
||||
<Setting Name="MultipleLineDisplay" Provider="Common.Settings.GenericSettingsProvider" Type="FeedCenter.Options.MultipleLineDisplay" Scope="User">
|
||||
<Setting Name="MultipleLineDisplay" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="FeedCenter.Options.MultipleLineDisplay" Scope="User">
|
||||
<Value Profile="(Default)">Normal</Value>
|
||||
</Setting>
|
||||
<Setting Name="VersionLocation" Type="System.String" Scope="Application">
|
||||
@@ -68,8 +68,11 @@
|
||||
<Setting Name="LastCategoryID" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="DefaultUserAgent" Provider="Common.Settings.GenericSettingsProvider" Type="System.String" Scope="User">
|
||||
<Setting Name="DefaultUserAgent" Provider="CKaczor.GenericSettingsProvider.GenericSettingsProvider" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="DatabaseFile" Type="System.String" Scope="Application">
|
||||
<Value Profile="(Default)">FeedCenter.realm</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
Reference in New Issue
Block a user