diff --git a/NzbDrone.5.1.ReSharper b/NzbDrone.5.1.ReSharper
deleted file mode 100644
index ef107f44c..000000000
--- a/NzbDrone.5.1.ReSharper
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
- SOLUTION
-
-
-
- - public
- - protected
- - internal
- - private
- - new
- - abstract
- - virtual
- - override
- - sealed
- - static
- - readonly
- - extern
- - unsafe
- - volatile
-
- 140
-
-
-
- $object$_On$event$
- $event$Handler
-
-
-
-
-
-
- $object$_On$event$
- $event$Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
- $object$_On$event$
- $event$Handler
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Replace with FluentAssertion
- $arg$.Should().BeTrue();
-
-
-
-
-
-
-
- Replace with FluentAssertion
- $arg$.Should().BeFalse();
-
-
-
-
-
-
-
- $actual$.Should().Be($excpected$);
-
-
- False
- False
- False
- Never
-
-
-
-
-
-
-
- $excpected$.Should().Be($actual$);
-
-
-
-
-
-
-
-
- $arg$.Should().NotBeNull();
- Assert.IsNotNull($arg$);
-
-
-
-
-
-
- $arg$.Should().NotBeEmpty();
- Assert.IsNotEmpty($arg$);
-
-
-
-
-
-
- $arg$.Should().BeEmpty();
- Assert.IsEmpty($arg$);
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NzbDrone.Core/Datastore/Connection.cs b/NzbDrone.Core/Datastore/Connection.cs
index 1a434cac0..12682555d 100644
--- a/NzbDrone.Core/Datastore/Connection.cs
+++ b/NzbDrone.Core/Datastore/Connection.cs
@@ -53,7 +53,7 @@ namespace NzbDrone.Core.Datastore
connection = ProfiledDbConnection.Get(sqliteConnection);
}
- var db = new Database(connection);
+ var db = new Database(connection, Database.DBType.SqlServerCE);
db.ForceDateTimesToUtc = false;
if (connection.State != ConnectionState.Open)
diff --git a/NzbDrone.Core/Datastore/PetaPoco/PetaPoco.cs b/NzbDrone.Core/Datastore/PetaPoco/PetaPoco.cs
index 0e00ac002..9dee00131 100644
--- a/NzbDrone.Core/Datastore/PetaPoco/PetaPoco.cs
+++ b/NzbDrone.Core/Datastore/PetaPoco/PetaPoco.cs
@@ -8,7 +8,7 @@
* and Adam Schroder (@schotime) for lots of suggestions, improvements and Oracle support
*/
-#define PETAPOCO_NO_DYNAMIC //in your project settings on .NET 3.5
+//#define PETAPOCO_NO_DYNAMIC //in your project settings on .NET 3.5
using System;
using System.Collections;
@@ -26,111 +26,111 @@ using System.Linq.Expressions;
namespace PetaPoco
{
- // Poco's marked [Explicit] require all column properties to be marked
- [AttributeUsage(AttributeTargets.Class)]
- public class ExplicitColumnsAttribute : Attribute
- {
- }
- // For non-explicit pocos, causes a property to be ignored
- [AttributeUsage(AttributeTargets.Property)]
- public class IgnoreAttribute : Attribute
- {
- }
+ // Poco's marked [Explicit] require all column properties to be marked
+ [AttributeUsage(AttributeTargets.Class)]
+ public class ExplicitColumnsAttribute : Attribute
+ {
+ }
+ // For non-explicit pocos, causes a property to be ignored
+ [AttributeUsage(AttributeTargets.Property)]
+ public class IgnoreAttribute : Attribute
+ {
+ }
- // For explicit pocos, marks property as a column
- [AttributeUsage(AttributeTargets.Property)]
- public class ColumnAttribute : Attribute
- {
- public ColumnAttribute() { }
- public ColumnAttribute(string name) { Name = name; }
- public string Name { get; set; }
- }
+ // For explicit pocos, marks property as a column
+ [AttributeUsage(AttributeTargets.Property)]
+ public class ColumnAttribute : Attribute
+ {
+ public ColumnAttribute() { }
+ public ColumnAttribute(string name) { Name = name; }
+ public string Name { get; set; }
+ }
- // For explicit pocos, marks property as a column
- [AttributeUsage(AttributeTargets.Property)]
- public class ResultColumnAttribute : ColumnAttribute
- {
- public ResultColumnAttribute() { }
- public ResultColumnAttribute(string name) : base(name) { }
- }
+ // For explicit pocos, marks property as a column
+ [AttributeUsage(AttributeTargets.Property)]
+ public class ResultColumnAttribute : ColumnAttribute
+ {
+ public ResultColumnAttribute() { }
+ public ResultColumnAttribute(string name) : base(name) { }
+ }
- // Specify the table name of a poco
- [AttributeUsage(AttributeTargets.Class)]
- public class TableNameAttribute : Attribute
- {
- public TableNameAttribute(string tableName)
- {
- Value = tableName;
- }
- public string Value { get; private set; }
- }
+ // Specify the table name of a poco
+ [AttributeUsage(AttributeTargets.Class)]
+ public class TableNameAttribute : Attribute
+ {
+ public TableNameAttribute(string tableName)
+ {
+ Value = tableName;
+ }
+ public string Value { get; private set; }
+ }
- // Specific the primary key of a poco class (and optional sequence name for Oracle)
- [AttributeUsage(AttributeTargets.Class)]
- public class PrimaryKeyAttribute : Attribute
- {
- public PrimaryKeyAttribute(string primaryKey)
- {
- Value = primaryKey;
- autoIncrement = true;
- }
+ // Specific the primary key of a poco class (and optional sequence name for Oracle)
+ [AttributeUsage(AttributeTargets.Class)]
+ public class PrimaryKeyAttribute : Attribute
+ {
+ public PrimaryKeyAttribute(string primaryKey)
+ {
+ Value = primaryKey;
+ autoIncrement = true;
+ }
- public string Value { get; private set; }
- public string sequenceName { get; set; }
- public bool autoIncrement { get; set; }
- }
+ public string Value { get; private set; }
+ public string sequenceName { get; set; }
+ public bool autoIncrement { get; set; }
+ }
- [AttributeUsage(AttributeTargets.Property)]
- public class AutoJoinAttribute : Attribute
- {
- public AutoJoinAttribute() { }
- }
+ [AttributeUsage(AttributeTargets.Property)]
+ public class AutoJoinAttribute : Attribute
+ {
+ public AutoJoinAttribute() { }
+ }
[AttributeUsage(AttributeTargets.Property)]
public class VersionColumnAttribute : ColumnAttribute
{
- public VersionColumnAttribute() {}
+ public VersionColumnAttribute() { }
public VersionColumnAttribute(string name) : base(name) { }
}
- // Results from paged request
- public class Page
- {
- public long CurrentPage { get; set; }
- public long TotalPages { get; set; }
- public long TotalItems { get; set; }
- public long ItemsPerPage { get; set; }
- public List Items { get; set; }
- public object Context { get; set; }
- }
+ // Results from paged request
+ public class Page
+ {
+ public long CurrentPage { get; set; }
+ public long TotalPages { get; set; }
+ public long TotalItems { get; set; }
+ public long ItemsPerPage { get; set; }
+ public List Items { get; set; }
+ public object Context { get; set; }
+ }
- // Pass as parameter value to force to DBType.AnsiString
- public class AnsiString
- {
- public AnsiString(string str)
- {
- Value = str;
- }
- public string Value { get; private set; }
- }
+ // Pass as parameter value to force to DBType.AnsiString
+ public class AnsiString
+ {
+ public AnsiString(string str)
+ {
+ Value = str;
+ }
+ public string Value { get; private set; }
+ }
- // Used by IMapper to override table bindings for an object
- public class TableInfo
- {
- public string TableName { get; set; }
- public string PrimaryKey { get; set; }
- public bool AutoIncrement { get; set; }
- public string SequenceName { get; set; }
- }
+ // Used by IMapper to override table bindings for an object
+ public class TableInfo
+ {
+ public string TableName { get; set; }
+ public string PrimaryKey { get; set; }
+ public bool AutoIncrement { get; set; }
+ public string SequenceName { get; set; }
+ }
- // Optionally provide an implementation of this to Database.Mapper
- public interface IMapper
- {
- void GetTableInfo(Type t, TableInfo ti);
- bool MapPropertyToColumn(PropertyInfo pi, ref string columnName, ref bool resultColumn);
- Func