This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-22133-bak
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit ad1ddff49cbfd826199b04ab172f3ab533fbec0d
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Fri Jul 11 17:24:09 2025 +0300

    wip primary keys
---
 .../TestModels/Northwind/NorthwindIgniteContext.cs                 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestModels/Northwind/NorthwindIgniteContext.cs
 
b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestModels/Northwind/NorthwindIgniteContext.cs
index 6576dfefd9c..34d6a841f6c 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestModels/Northwind/NorthwindIgniteContext.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.EntityFrameworkCore.FunctionalTests/TestModels/Northwind/NorthwindIgniteContext.cs
@@ -29,7 +29,12 @@ public class NorthwindIgniteContext : 
NorthwindRelationalContext
     {
         base.OnModelCreating(modelBuilder);
 
-        modelBuilder.Entity<CustomerQuery>();
+        // Add primary keys - Ignite does not support PK-less entities.
+        modelBuilder.Entity<CustomerQuery>().Property<Guid>("id")
+            .HasColumnType("uuid")
+            .HasDefaultValueSql("rand_uuid");
+
+        modelBuilder.Entity<CustomerQuery>().HasKey("id");
 
         modelBuilder.Entity<Customer>(
             b =>

Reply via email to