I was mapping a relation using something like the following
<map name="Foo" cascade="all-delete-orphan" lazy="false">
<key column="FooId"/>
<index column="FooType" type="Domain.Enum.FooType, Domain"/>
<element column ="FooStatus" type="Domain.Enum.FooStatus, Domain"/>
</map>
The class is like this
namespace Domain {
public class Enum {
public enum FooType {
Foo1,
Foo2,
...
Foo50}
public enum FooStatus {
NotNeeded,
NeededFor1,
NeededFor2,
NeededFor3,
NiceToHave}
}
}
Can I do this using Fluent Nhibernate? If not can I map a class mixing Fluent and XML?