private void RegisterParameterType(DbCommand command, string parameterName, DbType dbType)
 {
     ParameterTypeRegistry parameterTypeRegistry = this.GetParameterTypeRegistry(command.CommandText);
     if (parameterTypeRegistry == null)
     {
         parameterTypeRegistry = new ParameterTypeRegistry(command.CommandText);
         this.registeredParameterTypes.Add(command.CommandText, parameterTypeRegistry);
     }
     parameterTypeRegistry.RegisterParameterType(parameterName, dbType);
 }
Exemple #2
0
        private void RegisterParameterType(DbCommand command, string parameterName, DbType dbType)
        {
            ParameterTypeRegistry registry = GetParameterTypeRegistry(command.CommandText);
            if (registry == null)
            {
                registry = new ParameterTypeRegistry(command.CommandText);
                registeredParameterTypes.Add(command.CommandText, registry);
            }

            registry.RegisterParameterType(parameterName, dbType);
        }