Fixes a query that would cause the new petapoco changes to have issues since it was asking for the wrong type

This commit is contained in:
Shannon
2014-10-01 16:37:42 +10:00
parent 4ee4f296fc
commit 71242430da

View File

@@ -123,8 +123,8 @@ namespace UmbracoExamine.DataServices
{
try
{
var result = _applicationContext.DatabaseContext.Database.Fetch<PropertyAliasDto>("select distinct alias from cmsPropertyType order by alias");
return result.Select(r => r.Alias).ToList();
var result = _applicationContext.DatabaseContext.Database.Fetch<string>("select distinct alias from cmsPropertyType order by alias");
return result;
}
catch (Exception ex)
{