public class CTTypeMap :Enity<CTTypeMap>
{
public CTTypeMap()
{
Id(x => x.ID);
Map(x => x.createdOn);
Map(x => x.list_id);
References(x = x.CtListType).Column("list_id");
}
}
在上述代码行中,语句References(x = x.CtType).Column("list_id");将实体的 list_id 映射CtListType到 的 Id 列CTType。我需要list_id将实体映射CtListType到 .list_id 列CTType。请告诉我。