Fixed an issue where the table didn't match the model.

Fixed #67
This commit is contained in:
tidusjar 2016-03-22 13:22:47 +00:00
parent c4f57169ad
commit 59cf379d56
7 changed files with 16 additions and 12 deletions

View file

@ -39,7 +39,7 @@ namespace PlexRequests.Store
Config = config;
}
private ISqliteConfiguration Config { get; set; }
private ISqliteConfiguration Config { get; }
public long Insert(T entity)
{
using (var cnn = Config.DbConnection())
@ -65,7 +65,7 @@ namespace PlexRequests.Store
{
db.Open();
var result = db.GetAll<T>();
var selected = result.FirstOrDefault(x => x.User == id);
var selected = result.FirstOrDefault(x => x.UserGuid == id);
return selected;
}
}