remove references to obsolete RequestedBy property + start setting the db schema to the app version, and check that in the future for migrations.

This commit is contained in:
Drewster727 2016-04-02 17:04:05 -05:00
parent 8bd0464bef
commit c52ca41e32
4 changed files with 37 additions and 18 deletions

View file

@ -25,11 +25,20 @@
// ************************************************************************/
#endregion
using System.Text.RegularExpressions;
namespace PlexRequests.Core.Models
{
public class StatusModel
{
public string Version { get; set; }
public int DBVersion {
get
{
string trimStatus = new Regex("[^0-9]", RegexOptions.Compiled).Replace(Version, string.Empty).PadRight(4, '0');
return int.Parse(trimStatus);
}
}
public bool UpdateAvailable { get; set; }
public string UpdateUri { get; set; }
public string DownloadUri { get; set; }