Esempio n. 1
0
 /// <summary>
 /// Adds a contributor instance that will be called when a configuration is
 /// prepared for creating a session factory
 /// </summary>
 /// <param name="contributor">The contributor to add.</param>
 public static void AddContributor(INHContributor contributor)
 {
     lock (contributors)
     {
         contributors.Add(contributor);
     }
 }
		/// <summary>
		/// Adds a contributor instance that will be called when a configuration is
		/// prepared for creating a session factory 
		/// </summary>
		/// <param name="contributor">The contributor to add.</param>
		public static void AddContributor(INHContributor contributor)
		{
			lock (contributors)
			{
				contributors.Add(contributor);
			}
		}
 public static SessionFactoryConfig AddContributor(this SessionFactoryConfig config, INHContributor contributor)
 {
     config.Contributors.Add(contributor);
     return(config);
 }