Skip to content

Commit

Permalink
Changed IsQueryType to FindPrimaryKey to reflect changes from dotnet/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Adri Korpershoek committed Sep 9, 2019
1 parent 97ec187 commit f4e1a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GenericServices/Internal/Decoders/DecodedEntityClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public DecodedEntityClass(Type entityType, DbContext context)
" The class must be either be an entity class derived from the GenericServiceDto/Async class.");
}

if (efType.IsQueryType)
if (efType.FindPrimaryKey() == null)
{
//QueryType is read only, so we don't do any further setup
EntityStyle = EntityStyles.DbQuery;
Expand Down

0 comments on commit f4e1a10

Please sign in to comment.