Skip to content

Commit 2db001c

Browse files
CopilotAndriySvyryd
andcommitted
Add partition key configuration for EntityWithOptionalMultiPropComplex in Cosmos tests
Configure HasPartitionKey for the new test entity EntityWithOptionalMultiPropComplex to prevent NoPartitionKeyDefined warning in Cosmos DB tests. Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
1 parent d167f11 commit 2db001c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/EFCore.Cosmos.FunctionalTests/CosmosComplexTypesTrackingTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con
174174
modelBuilder.Entity<PubWithArrayCollections>().HasPartitionKey(x => x.Id);
175175
modelBuilder.Entity<PubWithRecordArrayCollections>().HasPartitionKey(x => x.Id);
176176
modelBuilder.Entity<PubWithPropertyBagCollections>().HasPartitionKey(x => x.Id);
177+
modelBuilder.Entity<EntityWithOptionalMultiPropComplex>().HasPartitionKey(x => x.Id);
177178
if (!UseProxies)
178179
{
179180
modelBuilder.Entity<FieldPub>().HasPartitionKey(x => x.Id);

0 commit comments

Comments
 (0)