Skip to content

Commit

Permalink
Validate that an entity type with sproc mapping is mapped to a table
Browse files Browse the repository at this point in the history
Fixes #28748
  • Loading branch information
AndriySvyryd committed Aug 16, 2022
1 parent 4dd5074 commit d043a51
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ protected virtual void ValidateStoredProcedures(
}

if (sprocCount > 0
&& sprocCount < 3
// TODO: Support this with #28703
//&& sprocCount < 3
&& entityType.GetTableName() == null)
{
throw new InvalidOperationException(RelationalStrings.StoredProcedureUnmapped(entityType.DisplayName()));
Expand Down

0 comments on commit d043a51

Please sign in to comment.