2

アカウント エンティティには、コンポーネントである必要がある条件コンポーネントがあります。

Account.cs 
public Guid Id {get; set;}
public Terms Terms {get; set;}
...

Terms.cs
public string TermsText {get;set;}
public DateTime Created {get; set;}

今、この例に基づいて(コードで)マップしようとしました

AccountMap.cs
...
Component(p => p.Terms, TermsMap.Mapping());

TermsMap.cs
public class TermsMap
{
    public static Action<IComponentMapper<Terms>> Mapping()
    {
        return c =>
        {
            c.Property(p => p.TermsText);
            c.Property(p => p.Created);
        };
    }
}

NhibernateMappingException: 用語のタイプを特定できませんでした

ここで何が間違っていますか?

ありがとう

4

0 に答える 0