I think you are trying to use NH as FNH but it is not the same. Try to explain you you want have, send me the little domain, and I will publish a usage-example.
On Wed, Apr 13, 2011 at 9:40 AM, Luka <[email protected]> wrote: > 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. > > -- Fabio Maulo -- 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.
