コード例 #1
0
        public ProviderConfiguration(ConnectionProviderEnum p_providerType)
        {
            if (p_providerType == ConnectionProviderEnum.NullProvider)
            {
                throw new ArgumentException("Il tipo di Provider non può essere nullo.");
            }

            this.m_providerType = p_providerType;
            this.SetParameterPrefix();
        }
コード例 #2
0
        private void LoadConfiguration()
        {
            ConnectionProviderEnum t_providerType = (ConnectionProviderEnum)Int32.Parse(ConfigurationSettings.AppSettings["ProviderType"]);

            m_providerConfiguration = new SharpMapper.ConnectionProvider.ProviderConfiguration(t_providerType);
        }