Example #1
0
 internal override SqlExpression VisitClientParameter(SqlClientParameter cp)
 {
     if (cp.SqlType.CanBeParameter)
     {
         var parameter = new SqlParameter(cp.ClrType, cp.SqlType,
                                          CreateParameterName(),
                                          cp.SourceExpression);
         currentParams.Add(new SqlParameterInfo(parameter, cp.Accessor.Compile()));
         return(parameter);
     }
     return(cp);
 }
Example #2
0
 internal virtual SqlExpression VisitClientParameter(SqlClientParameter cp)
 {
     return(cp);
 }