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 authored Aug 16, 2022
1 parent 4dd5074 commit 93fa75d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void Can_use_relational_model_with_sprocs(bool mapToTables, Mapping mappi
AssertSprocs(model, mapping, mappedToTables: true);
}

[ConditionalTheory]
[ConditionalTheory(Skip = "#28703")]
[InlineData(Mapping.TPH)]
[InlineData(Mapping.TPT)]
[InlineData(Mapping.TPC)]
Expand Down

0 comments on commit 93fa75d

Please sign in to comment.