We are facing performance issues with below method. Can you please
suggest , How can I , Improve the performance. How can i achieve the
Serialize the N hibernate configuration.

Serialize Nhibernate configuration to disk and instantiate the
serialized version unless the assemblies have been updated.

                private ISessionFactory GetSessionFactoryFor(string
sessionFactoryConfigPath) {

FluentConfiguration fluentConfiguration = Fluently.Configure(cfg)
                                        .Mappings(m=>
                                                  {m.FluentMappings
        
                .AddFromAssembly(Assembly.Load("ABC.MyData.Mappings"))
                                                                
.Conventions.Add(DefaultLazy.Always(),
                                                                                
 OptimisticLock.Is(x=>x.All()),
                                                                                
 DynamicUpdate.AlwaysTrue(),
                                                                                
 DynamicInsert.AlwaysFalse(),
                                                                                
 DefaultCascade.None()
                                                                                
)
        
                .Conventions.AddFromAssemblyOf<FoxproDateConvention>()
                                                                ;
                                                  });

}

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