Skip to content

TPC: Bug while seeding #27945

Closed
Closed

Description

@smitpatel
 Message: 
System.InvalidOperationException : The entity type 'DerivedInheritanceRelationshipEntity' is not mapped to the store object 'BaseEntities'.

  Stack Trace: 
TableBase.CheckMappedEntityType(IEntityType entityType) line 134
ITableBase.GetRowInternalForeignKeys(IEntityType entityType) line 168
SharedTableEntryMap`1.GetMainEntry(IUpdateEntry entry) line 75
SharedTableEntryMap`1.GetMainEntry(IUpdateEntry entry) line 81
SharedTableEntryMap`1.GetOrAddValue(IUpdateEntry entry, SharedTableEntryValueFactory`1 createElement) line 51
CommandBatchPreparer.CreateModificationCommands(IList`1 entries, IUpdateAdapter updateAdapter, Func`1 generateParameterName) line 199
CommandBatchPreparer.BatchCommands(IList`1 entries, IUpdateAdapter updateAdapter)+MoveNext() line 67
BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) line 57
RelationalDatabase.SaveChanges(IList`1 entries) line 57
StateManager.SaveChanges(IList`1 entriesToSave) line 1101
StateManager.SaveChanges(StateManager stateManager, Boolean acceptAllChangesOnSuccess) line 1164
<>c.<SaveChanges>b__104_0(DbContext _, ValueTuple`2 t) line 1145
<>c__DisplayClass28_0`2.<Execute>b__0(DbContext context, TState state) line 207
ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) line 224
ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) line 206
StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) line 1141
DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) line 604
DbContext.SaveChanges() line 555
InheritanceRelationshipsContext.Seed(InheritanceRelationshipsContext context) line 72
InheritanceRelationshipsQueryFixtureBase.Seed(InheritanceRelationshipsContext context) line 566
SharedStoreFixtureBase`1.<InitializeAsync>b__21_2(DbContext c) line 65
SqlServerTestStore.Initialize(Func`1 createContext, Action`1 seed, Action`1 clean) line 88
<>c__DisplayClass13_0.<Initialize>b__0() line 36
TestStoreIndex.CreateShared(String name, Action initializeDatabase) line 25
TestStore.Initialize(IServiceProvider serviceProvider, Func`1 createContext, Action`1 seed, Action`1 clean) line 36
RelationalTestStore.Initialize(IServiceProvider serviceProvider, Func`1 createContext, Action`1 seed, Action`1 clean) line 40
SharedStoreFixtureBase`1.InitializeAsync() line 65

Tests are skipped with #3170 but mainly it is failing initialization of fixture
Changes_in_derived_related_entities_are_detected
Entity_can_make_separate_relationships_with_base_type_and_derived_type_both

Activity

  1. smitpatel commented on May 5, 2022

    @smitpatel
    ContributorAuthor

    TPCRelationshipsQuerySqlServerTest whole class failure in seeding.

  2. added this to the 7.0.0 milestone on May 7, 2022
  3. removed their assignment
    on May 10, 2022
  4. added 4 commits that reference this issue on May 10, 2022
    863a491
    d67832d
    6af5d92
    a6d82d1
  5. added a commit that references this issue on May 11, 2022
    979c898
  6. modified the milestones: 7.0.0, on May 25, 2022
  7. modified the milestones: , 7.0.0 on Nov 5, 2022
  8. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions