Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net Fluent nhibernate带有componentmap的私有字段_Vb.net_Fluent Nhibernate - Fatal编程技术网

Vb.net Fluent nhibernate带有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参数来定义

是否可以将具有自己的componentmap的componentmap映射到私有字段?我已经尝试过了,但是它需要实体的内联映射

它适用于以下公共财产:

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