Hi
I get this exception when trying to use new mapping by code:
System.ArgumentException: Cannot create an instance of
Domain.Model.EntityMap`1[T] because Type.ContainsGenericParameters is
true.

My class mapp is like this:

public class Entity: IEntity<Guid>
{
    public virtual Guid Id {get;set;}
}

public class EntityMap<T>: ClassMapping<> where T:Entity
{
    Id(x=>x.Id, map=>map.Generator(Generators.GuidComb));
}

public class PersonMap: EntityMap<Person>
{
....
}

Please help

-- 
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