Castle.ActiveRecord.Framework.Config.InPlaceConfigurationSource.SetUpNamingStrategyType C# (CSharp) Method

SetUpNamingStrategyType() protected method

Sets the type of the naming strategy.
protected SetUpNamingStrategyType ( String customType ) : void
customType String Custom implementation type name
return void
		protected void SetUpNamingStrategyType(String customType)
		{
			if (customType != null && customType != String.Empty)
			{
				String typeName = customType;

				Type namingStrategyType = Type.GetType(typeName, false, false);

				if (namingStrategyType == null)
				{
					String message = String.Format("The type name {0} could not be found", typeName);

					throw new ActiveRecordException(message);
				}

				NamingStrategyImplementation = namingStrategyType;
			}
		}