1
IUserType을 통해 매핑되는 엔티티 컬렉션을 가질 수 있습니까? 예를 들어 : <property
에 IUserType 매핑을 적용하기 위해 사용되는IUserType 인스턴스 모음을 가질 수 있습니까?
class Foo
{
public int Id { get; set; }
public ISet<Special> Items { get; set; }
}
class Special
{
public Special(string columnValue)
{
_val = columnValue;
}
public override string ToString()
{
return _val.TranformInInterestingWays();
}
private string _val;
}
class SpecialUserTypeForMapping : IUserType
{
// assume that all the right stuff is here
// for using the non-default constructor on the way in
// and calling ToString() on the way out
}
내가 제대로 설명서를 읽고 있어요 경우
, 어느 것도 <set
>, <one-to-many
>, <many-to-many
>도 <class
> 요소는 "유형"속성을 지원합니다> 에스. 그럼 어떻게 매핑할까요?