上下文:我们使用SQLite-Net Extensions进行本地数据缓存和Xamarin。我们计划部署到iOS,安卓和Windows。Problem如代码示例所示,[ManyToOne]属性用于表示关系字段。这不管用。正如在上所描述的,[ForeignKey]属性可以用来指定外键关系。这似乎只支持int。我们是否可以轻松地调整我们的结构来支持这些关系,而不重复Id字段的属性。下面的内容是不可取的。[ForeignKey(typeof(Address))]
public int AddressId
我尝试使用NestJS和TypeORM在两个表之间设置n-1关系,但得到的结果是:Referenced column undefined was not found in entity PostsEntityColumn() userId: number;
value: boolean;
title: string;
content: string;