我当前在对象上具有以下属性:
private IDictionary<ExampleKey,ExampleObject> example;
ExampleKey在哪里
public class ExampleKey
{
public long KeyField1{ get; set;}
public long KeyField2{ get; set;}
}
<map name="example" inverse="true" cascade="all-delete-orphan">
<key column="OwningClassID"/>
<composite-index class="ExampleKey">
<key-property type="long" name="KeyField1" column="Key1ID" access="property"/>
<key-property type="long" name="KeyField2" column="Key2ID" access="property" />
</composite-index>
<one-to-many class="ExampleObject" />
</map>
我正在尝试将所有内容更新为Fluent,并发现在映射时存在困难。有人知道这样做的方法吗?
谢谢