NHIbernate: How to map a bag with an ICompositeUserType

前端 未结 1 932
失恋的感觉
失恋的感觉 2021-01-22 21:10

Suppose I have a class with a collection of immutable types, that I would like to map with a custom ICompositeUserType

public class Foo
{
    public long Id { ge         


        
相关标签:
1条回答
  • 2021-01-22 21:34

    element instead of composite-element because the properties and conversion is specified inside the ICompositeUserType

    <element type="Integration.UserTypes.BarCompositeUserType, Integration">
      <column name="BarBlah" />
      <column name="BarHalb" />
    </element>
    
    0 讨论(0)
提交回复
热议问题