【发布时间】:2015-07-16 17:01:31
【问题描述】:
我尝试使用ServiceStack.OrmLite SQL Server 加载具有 3 级引用的表,它只加载到第二级:
https://github.com/ServiceStack/ServiceStack.OrmLite
MasterAccounts.Contacts.ContactType
我尝试使用命令:LoadSelect<MasterAccounts>(x => x)
它加载了Contacts 引用,但没有加载ContactType。
下面可以看到我正确放置了数据注释:
[References(typeof(MasterAccountContactType))]
public int MasterAccountContactTypeId { get; set; }
[Reference]
public MasterAccountContactType MasterAccountContactType { get; set; }
那么,加载第三级引用有什么限制吗?
【问题讨论】:
标签: servicestack ormlite-servicestack