如果我使用Database.EnsureCreated()创建模式,则会使用数据类型uuid创建主键列。除了将其改为use之外,一切都是一样的,Database.Migrate()创建了数据类型为text的所有主键列,然后当我尝试执行任何操作时,我都会得到exception:Npgsql.PostgresException: 42883: operator does not exist: text = uuid。在迁移中以及在自动生成“上下文建模快照”中,主键列
Relationship, ref: 'Customer.ordersPlaced', many: false // And some other fields如果两个表都使用自动递增整数或UUID作为它们的主键,则一切都按预期工作。但是,如果对一个表使用整数ID,对另一个表使用UUID (这是我喜欢的方法),则在Keystone管理UI中会出现以下错误:
select "t0".* from "public"."ordersPla