Hi,
I have this scenarion:

A table:

Activity
.Id : Guid
.Type: int
.Title: nvarchar(20)
...

Classes
public class Activity: Entity
{
    public virtual ActivityType Type {get;set;}
    public virtual string Title {get;set;}
}

public class FormActivity: Activity
{

}

and a mapping:
mapper.Class<Activity>(map =>
                                       {
 
map.Discriminator(dm=>dm.Column("TYPE"));
                                       });
mapper.Subclass<FormActivity>(map=>map.DiscriminatorValue(ActivityType.Form));

When building SessionFactory I get Exception

System.InvalidOperationException: Sequence contains more than one
matching element
It throws when get on this line:
mapper.Subclass<FormActivity>(map=>map.DiscriminatorValue(ActivityType.Form));

what am I doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to