Exemplo n.º 1
0
 public IDbDataParameter CreateDbParameter(IDbCommand command, IDbAdapter dbAdapter)
 {
     var result = command.CreateParameter();
     result.ParameterName = dbAdapter.FormatParameterName(Name);
     result.Value = dbAdapter.ConvertToDbType(Value);
     return result;
 }
Exemplo n.º 2
0
        public IDbDataParameter CreateDbParameter(IDbCommand command, IDbAdapter dbAdapter)
        {
            var result = command.CreateParameter();

            result.ParameterName = dbAdapter.FormatParameterName(Name);
            result.Value         = dbAdapter.ConvertToDbType(Value);
            return(result);
        }