This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Interface for the individual factory configuration | |
| /// </summary> | |
| public interface IFactoryConfiguration | |
| { | |
| /// <summary> | |
| /// Sets the alias for the <see cref="ISessionFactory"/> | |
| /// </summary> | |
| /// <param name="alias">Alias for the factory</param> | |
| /// <returns></returns> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| windsorContainer.Register( | |
| NHibernateIntegration | |
| .Configure(config => | |
| config | |
| .ProxyFactory<ProxyFactoryFactory>() | |
| .Dialect<MsSql2008Dialect>() | |
| .Provider<DriverConnectionProvider>() | |
| .ConnectionString(connString) | |
| .Driver<SqlClientDriver>() | |
| .CreateFactory(factory => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var container = new WindsorContainer(); | |
| var nhfacilityRegistration = new NHFacilityRegistration(conf => | |
| conf | |
| .Id("FacilityId") | |
| .DefaultConfigurationPersister("mykey") | |
| .AddFactory(x => x | |
| .Alias("myAlias") | |
| .Id("myId") | |
| .UsingConfigurationPersister("persister") | |
| .UsingConfigurationBuilder |
OlderNewer