aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-05-21 12:13:57 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-05-21 12:13:57 -0400
commitf4d846dc7702ac865e141b97707731561f609353 (patch)
tree23bac84c056ba043ecc07adaef7f756cb881bf0b /MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs
parent68914d9cd02903f43a6109850f4995cb5da797b7 (diff)
parente01202030dcd16cd9c7c3327b4e411be7de02614 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs20
1 files changed, 4 insertions, 16 deletions
diff --git a/MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs b/MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs
index eb5868932..baaf9d956 100644
--- a/MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs
+++ b/MediaBrowser.Server.Implementations/Sqlite/SQLiteUserRepository.cs
@@ -46,18 +46,6 @@ namespace MediaBrowser.Server.Implementations.Sqlite
private readonly IApplicationPaths _appPaths;
/// <summary>
- /// Gets a value indicating whether [enable delayed commands].
- /// </summary>
- /// <value><c>true</c> if [enable delayed commands]; otherwise, <c>false</c>.</value>
- protected override bool EnableDelayedCommands
- {
- get
- {
- return false;
- }
- }
-
- /// <summary>
/// Initializes a new instance of the <see cref="SQLiteUserDataRepository" /> class.
/// </summary>
/// <param name="appPaths">The app paths.</param>
@@ -127,13 +115,13 @@ namespace MediaBrowser.Server.Implementations.Sqlite
cancellationToken.ThrowIfCancellationRequested();
- using (var cmd = connection.CreateCommand())
+ using (var cmd = Connection.CreateCommand())
{
cmd.CommandText = "replace into users (guid, data) values (@1, @2)";
cmd.AddParam("@1", user.Id);
cmd.AddParam("@2", serialized);
- using (var tran = connection.BeginTransaction())
+ using (var tran = Connection.BeginTransaction())
{
try
{
@@ -162,7 +150,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
/// <returns>IEnumerable{User}.</returns>
public IEnumerable<User> RetrieveAllUsers()
{
- using (var cmd = connection.CreateCommand())
+ using (var cmd = Connection.CreateCommand())
{
cmd.CommandText = "select data from users";
@@ -201,7 +189,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
cancellationToken.ThrowIfCancellationRequested();
- using (var cmd = connection.CreateCommand())
+ using (var cmd = Connection.CreateCommand())
{
cmd.CommandText = "delete from users where guid=@guid";
var guidParam = cmd.Parameters.Add("@guid", DbType.Guid);