views:

137

answers:

1

.........

<property name="Title" />

<set name ="Contacts" lazy="false" table ="Ad_Contacts">
  <key column="Ad_Id"></key>
  <element type ="String" column="Contact" not-null="true"></element>
</set>

.........

HasMany(x => x.Contacts).AsSet() , which is the statement I used for fluent nhibernate mapping. It doesn't work. Contacts is a collection of string.

A: 

You could try with the following map:

HasMany<string>(x => x.Contacts).AsElement("Ad_Id");
Darin Dimitrov