diff --git a/src/UmbracoExamine/DataServices/PropertyAliasDto.cs b/src/UmbracoExamine/DataServices/PropertyAliasDto.cs new file mode 100644 index 0000000000..84e63ccf5c --- /dev/null +++ b/src/UmbracoExamine/DataServices/PropertyAliasDto.cs @@ -0,0 +1,10 @@ +namespace UmbracoExamine.DataServices +{ + /// + /// A Dto object for returning property aliases from PetaPoco + /// + public class PropertyAliasDto + { + public string Alias { get; set; } + } +} \ No newline at end of file diff --git a/src/UmbracoExamine/DataServices/UmbracoContentService.cs b/src/UmbracoExamine/DataServices/UmbracoContentService.cs index 85adb5d206..d2025e1f83 100644 --- a/src/UmbracoExamine/DataServices/UmbracoContentService.cs +++ b/src/UmbracoExamine/DataServices/UmbracoContentService.cs @@ -122,8 +122,8 @@ namespace UmbracoExamine.DataServices { try { - var result = _applicationContext.DatabaseContext.Database.Fetch("select distinct alias from cmsPropertyType order by alias"); - return result.Select(r => r.alias.ToString()).Cast().ToList(); + var result = _applicationContext.DatabaseContext.Database.Fetch("select distinct alias from cmsPropertyType order by alias"); + return result.Select(r => r.Alias).ToList(); } catch (Exception ex) { diff --git a/src/UmbracoExamine/UmbracoExamine.csproj b/src/UmbracoExamine/UmbracoExamine.csproj index 429b6eee86..3a462c8efe 100644 --- a/src/UmbracoExamine/UmbracoExamine.csproj +++ b/src/UmbracoExamine/UmbracoExamine.csproj @@ -113,6 +113,7 @@ +