Précédent   Forum du club des développeurs et IT Pro > Dotnet > Accès aux données > NHibernate
NHibernate Forum d'entraide sur l'utilisation du mappeur objet/relationnel NHibernate.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 08/09/2011, 17h46   #21
hellalaboy
Membre à l'essai
 
Inscription : juillet 2009
Messages : 98
Détails du profil
Informations forums :
Inscription : juillet 2009
Messages : 98
Points : 22
Points : 22
Merci pour vos reponses
ça fait 10 jours alors que je galéré avec flunt nhibernate.Est ce que vous pouvez me conseiller un autre outils ORM avec dot.net
hellalaboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/09/2011, 18h05   #22
hellalaboy
Membre à l'essai
 
Inscription : juillet 2009
Messages : 98
Détails du profil
Informations forums :
Inscription : juillet 2009
Messages : 98
Points : 22
Points : 22
Merci pour vos réponses
En fait j ai passé 10 jours à galerer avec Fluent Nhibernate et je me demande si vous pouvez me proposer un outils ORM dotnet dont vous avez fait l expérience et vous appréciez
hellalaboy est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 11/09/2011, 11h14   #23
spleef
Invité de passage
 
Homme Patrice LEVA
Développeur .NET
Inscription : octobre 2009
Messages : 1
Détails du profil
Informations personnelles :
Nom : Homme Patrice LEVA
Localisation : France, Nord (Nord Pas de Calais)

Informations professionnelles :
Activité : Développeur .NET
Secteur : Conseil

Informations forums :
Inscription : octobre 2009
Messages : 1
Points : 2
Points : 2
Moi cela fonctionne plutôt bien j'utilise NHibernate 3.1 avec fluent + mysql :

Voici ma config :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
        /// <summary>
        /// Obtient une référence vers un instance de <see cref="ISessionFactory"/>
        /// représentant la fabrique de session nhibernate.
        /// </summary>
        public static ISessionFactory SessionFactory
        {
            get
            {
                lock (_lock)
                {
                    if (_sessionFactory == null)
                    {
                        try
                        {
                            var configuration = Fluently.Configure()
                            .Database(MySQLConfiguration.Standard.ConnectionString(p => p.FromConnectionStringWithKey(CONNECTION_STRING_KEY)))
                            .Mappings(m => m.AutoMappings.Add(new AutoPersistenceModel().AddMappingsFromAssembly(typeof(Mapping.DossierMap).Assembly)))
                            .Mappings(m => m.AutoMappings.Add(new AutoPersistenceModel().AddMappingsFromAssembly(typeof(Mapping.AbonneMap).Assembly)))
                            .CurrentSessionContext("web")
                            .Cache(o => o.ProviderClass(typeof(NHCache.HashtableCacheProvider).AssemblyQualifiedName).UseQueryCache().UseSecondLevelCache())
                            .BuildConfiguration();
 
                            _sessionFactory = configuration.BuildSessionFactory();
                        }
                        catch (Exception exception)
                        {
                            HandleException(exception);
                            return null;
                        }
                    }
                    return _sessionFactory;
                }
            }
        }
spleef est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 00h09.


 
 
 
 
Partenaires

Hébergement Web