Hola Nadia.
En primer lugar, no hace falta que hagas:
NHibernate.Cfg.Configuration config;
config = new NHibernate.Cfg.Configuration();
config.Configure();
config.AddAssembly("Entidades");
podes hacer directamente:
var configuration = new Configuration().Configure();
y despues si podes hacer:
_sessionFactory = configuration.BuildSessionFactory();
En cuanto al archivo de mapeo, lo podes hacer mas sencillo....
<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="...."
assembly="....">
<class name="......., ..." table="......." lazy="false">
<id name="......">
<generator class="native">
</generator>
</id>
<property name=".........." column="................." type="string"
not-null="true" />
....
....
....
</class>
</hibernate-mapping>
y por ultimo te diria que definas las propiedades como virtual....
Espero te sirva, Saludos.
Christian.
--~--~---------~--~----~------------~-------~--~----~
Para escribir al Grupo, hágalo a esta dirección:
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano
-~----------~----~----~----~------~----~------~--~---