nike...@letterboxes.org
unread,Oct 28, 2008, 11:39:00 AM10/28/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Fluent NHibernate
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?