Vb.net Fluent nhibernate带有componentmap的私有字段
是否可以将具有自己的componentmap的componentmap映射到私有字段?我已经尝试过了,但是它需要实体的内联映射 它适用于以下公共财产:Vb.net Fluent nhibernate带有componentmap的私有字段,vb.net,fluent-nhibernate,Vb.net,Fluent Nhibernate,是否可以将具有自己的componentmap的componentmap映射到私有字段?我已经尝试过了,但是它需要实体的内联映射 它适用于以下公共财产: Component(Function(t) t._ScormSettings) 但在尝试这一点时: Component(Of ScormSettingsEntity)(Function(t) Reveal.Member(Of ScormPackageEntity)("_ScormSettings")) 它需要一个funcobject参数来定义
Component(Function(t) t._ScormSettings)
但在尝试这一点时:
Component(Of ScormSettingsEntity)(Function(t) Reveal.Member(Of ScormPackageEntity)("_ScormSettings"))
它需要一个funcobject参数来定义映射
ScormSettings映射:
Public Class ScormSettingsMapping
Inherits ComponentMap(Of ScormSettingsEntity)
Sub New()
Map(Function(t) t.SettingTrackCompleted).Column("SettingTrackCompleted").Nullable()
Map(Function(t) t.SettingTrackScore).Column("SettingTrackScore").Nullable()
Map(Function(t) t.SettingTrackCompletedScore).Column("SettingTrackCompletedScore").Nullable()
End Sub
End Class