0
A
回答
1
- 回答
的ContainedInAttribute在与IndexedEmbeddedAttribute结合使用。 ContainedInAttribute用作一种标记,它指向一个使用IndexedEmbeddedAttribute的类。这告诉NHibernate.Search,当你更新这个类时,你想更新父类的全文索引。当您更新拥有班级的孩子并且您希望所有者的索引也已更新时,这很好。
下面是如何使用它的一个例子。
[Indexed]
class Parent
{
[IndexedEmbeded]
public Child SomeChild { get; set; }
}
class Child
{
[ContainedIn]
public Parent MyParent { get; set; }
}
注意:如果指向不使用IndexEmbeded属性的拥有父项,则ContainedIn属性无用。
- 回答
文件信息是从休眠搜索,但这里的大多数事情适用于NHibernate.Search为好。
http://docs.jboss.org/hibernate/stable/search/reference/en/html/
或
http://docs.jboss.org/hibernate/stable/search/reference/en/html_single/
相关问题
- 1. Mono.GetOptions.OptionAttribute的MaxOccurs属性是做什么的?
- 2. html bindpoint属性是做什么的?
- 3. android:name属性是做什么的?
- 4. 属性(属性默认值)是做什么的?
- 5. 什么是属性?
- 6. sklearn的DecisionTreeClassifier中的“splitter”属性是做什么的?
- 7. NHibernate中的反向属性和只读属性在做什么?
- 8. XSD中元素的ref属性是做什么的?
- 9. Hasmorepages PrintPageEventArgs属性做了什么?
- 10. Flexbox属性什么都不做
- 11. 使用装配属性的最佳做法是什么?
- 12. jQuery - newHeader属性/字段是做什么的?
- 13. 什么是主要属性?
- 14. 什么是“android:layout_column”属性?
- 15. 什么是测试属性?
- 16. Javascript hasOwnProperty属性是什么?
- 17. 什么是“空”@about属性?
- 18. 什么是引用属性?
- 19. 什么是UITableView separatorEffect属性?
- 20. 什么是属性节点
- 21. 什么是ThemeInfo属性?
- 22. PoolingNHttpClientConnectionManager:什么是timeToLive属性?
- 23. 什么是UIScrollView contentInset属性?
- 24. 什么是.NET Control.Margin属性?
- 25. 什么是HttpDelete属性
- 26. 什么是AppDomainSetup.SandboxInterop属性?
- 27. 什么是顶点属性?
- 28. 什么是Control.Disposing属性?
- 29. 什么是同步 - 属性?
- 30. 什么是g_editable属性?