[VB.Net - NHibernate] Mapping dans les class
Résolu
badside
Messages postés
78
Date d'inscription
Statut
Membre
Dernière intervention
-
badside Messages postés 78 Date d'inscription Statut Membre Dernière intervention -
badside Messages postés 78 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- [VB.Net - NHibernate] Mapping dans les class
- Mind mapping gratuit télécharger - Télécharger - Organisation
- Classer les applications par ordre alphabétique iphone - Guide
- Comment classer les mails dans gmail - Guide
- Nvcontainer windows class - Forum Javascript
- Nvcontainer window class - Forum Virus
1 réponse
Je viens de réussir à coder la classe de mapping. La syntaxe est la suivante pour VB.net :
Maintenant, je n'arrive pas à effectuer un BuildSessionFactory lorsque je tente d'ouvrir une session. J'obtiens l'erreur suivante :
Avez-vous une idée ?
Public Class Class1Map Inherits FluentNHibernate.Mapping.ClassMap(Of Class1) Public Sub Class1Map() Table("Test") Map(Function(x) x.Name) Map(Function(x) x.FirstName) End Sub End Class
Maintenant, je n'arrive pas à effectuer un BuildSessionFactory lorsque je tente d'ouvrir une session. J'obtiens l'erreur suivante :
The ProxyFactoryFactory was not configured. Initialize 'proxyfactory.factory_class' property of the session-factory configuration section with one of the available NHibernate.ByteCode providers. Example: <property name='proxyfactory.factory_class'>NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> Example: <property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
Avez-vous une idée ?