NHibernate.Cfg is a package library in C# that provides options for configuring the NHibernate session factory. The SessionFactoryName property allows you to set a custom name for the session factory.
Example:
var configuration = new Configuration(); configuration.SessionFactoryName("MySessionFactory"); var sessionFactory = configuration.BuildSessionFactory();
In this example, we create a new Configuration object and set the SessionFactoryName to "MySessionFactory". We then use the BuildSessionFactory() method to create a new session factory with the specified name.
Overall, NHibernate.Cfg is a useful package library for configuring and creating NHibernate session factories in C#.
C# (CSharp) NHibernate.Cfg Configuration.SessionFactoryName - 20 examples found. These are the top rated real world C# (CSharp) examples of NHibernate.Cfg.Configuration.SessionFactoryName extracted from open source projects. You can rate examples to help us improve the quality of examples.